Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
Comments in @import-ed files are being inappropriately suppressed #1389
Guys, this is really causing problems when a documentation like Kalei (http://kaleistyleguide.com/) is used. It uses comments in order to generate a style documentation. In my case, I use Grunt to generate two files. One of the files is compressed and doesn't have comments - this is the file that gets loaded on the website. The second CSS file is not compressed and it has comments. The style guide reads the uncompressed file and builds a documentation from it.
It's not acceptable to use suppressed comments, because they will appear in the compressed file as well.
Is there a working solution without explicitly mark comments like /*! */ ?
The problem with /*! */ is that the stylus compiler can't remove them in further build tasks for production. So I need another CSS minifier to remove the persisted comments.
I would suggest an additional build flag to remove persisted comments /*! */ as well if it is needed.