lesscss-maven-plugin icon indicating copy to clipboard operation
lesscss-maven-plugin copied to clipboard

Remove comments (like YUI compressor does)

Open angelomichel opened this issue 12 years ago • 0 comments

I don't know if it's possible already. But I'd like to see an option to remove all comments except the ones that have an exclamation mark (!).

Example from YUI: /*! this stays after compile */ .content p { margin: 0 0 12px 0; }

/* this gets removed, because no "!" */ .someclass div { display: inline; }

The reason I ask is because I like to auto-generate a styleguide but I don't want the style-guide comments (which are huge!) in the compiled css. I do want 'some' standard comments in the compiled source.

Is this already possible? If not, is it hard to implement?

angelomichel avatar Apr 22 '13 10:04 angelomichel