keepSpecialComments does not work at all
See original GitHub issueI’m using clean-css within a gulp
workflow (via gulp-cssmin
) but the keepSpecialComments
option is not honored. By default, all special comments should be preserved but instead they are stripped. If I run it with an additional option, this additional option is honored. Like so:
.pipe cssmin
keepSpecialComments: 1
keepBreaks: true
The linebreaks are there but all special comments have been stripped out.
.pipe cssmin
keepBreaks: true
This gives the exact same result.
Issue Analytics
- State:
- Created 8 years ago
- Comments:10 (4 by maintainers)
Top Results From Across the Web
keepSpecialComments does not work at all #584 - GitHub
I'm using clean-css within a gulp workflow (via gulp-cssmin) but the keepSpecialComments option is not honored. By default, all special ...
Read more >grunt-contrib-cssmin - how to remove comments from minified ...
Set keepSpecialComments to zero, for removing all comments. ... module.exports = function(grunt) { grunt.config.set('cssmin', { options: { level: { 1: ...
Read more >Vardhaman Deshpande: 05/01/2016
PROD does not require any special logo as that might confuse end users: Here is how you set the custom theme and logo...
Read more >Using Gulp to Speed Up WordPress Development - WPMU Dev
For open source projects, I would consider supplying all the development files, in which case they can reside within the main project. Omitting ......
Read more >Gulp minifyCss and CSS Special Comments - Roots Discourse
I'm having some issues with Special Comments in CSS and SCSS. ... There is a keepSpecialComments: 0 setting to nuke all comments.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
https://github.com/stylus/stylus/issues/1763
👍