Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Allow to preserve important comments in minified CSS output while not using keepComments settings #278
In the recent project i was working on, i needed to keep some meta tag comment even after the CSS minification.
This is pretty much in inline witht the what clean-css folks did (https://github.com/GoalSmashers/clean-css)
I hope someone could find it useful and we can integrate this
This comment has been minimized.
This comment has been minimized.Show comment Hide comment
Unfortunately there are license comments that use the /! */ comment too, so they would be kept if keepLicenseComments was set to false. What could be done is to include the test for the /! */ comment as part of the preserveLicenseComments: true pathway though. But otherwise, it will cause unwanted behavior for the false case.
Going to push this out of 2.1 and wait to get a good story for this.