Closed Leolik closed 10 years ago
There is currently not a setting to remove those comments from the files. It should not be present in the final CSS if you use a good minifier. Why do you want to remove it?
In our requirements, do not use minification (slice stage) and css should be with comments (page separators and etc). It is good that there are comments in sprites.scss (for developers), but bad that they appear in the generated css. Can you change the comments that they were not visible in the css, only scss, for example:
// SCSS variables are information about icon's compiled state, stored under its original file name
//
// .icon-home {
// width: $icon-home-width;
// }
//
// The large array-like variables contain all information about a single icon
// $icon-home: x y offset_x offset_y width height total_width total_height image_path;
If you would like to keep the comments in SCSS but not in the CSS, then that responsibility falls on SASS. In the compressed
compilation setting of SASS, it strips out all comments except for important ones
/*! This is important because it has the ! after the */
Maybe you can leverage that?
http://www.codechewing.com/library/permanent-comments-to-sass-compressed-css/
When I said that we do not use minification, under this also meant that we use expanded
output style for SASS.
At the moment, I have to cut the comments of the generated spritesmith .scss file using grunt-stripcomments. Thereafter, the resulting file CSS is generated without spritesmith comment. But it would be nice if your utility was some way to control the output comments.
@Leolik +1
@Leolik +1
@Leolik +1
+9999
+
In my result css file I see comments from generated .scss file
How disable this comment??