question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

keepSpecialComments does not work at all

See original GitHub issue

I’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:closed
  • Created 8 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
shinnncommented, May 28, 2015

whether Stylus team is aware of this issue

https://github.com/stylus/stylus/issues/1763

0reactions
jakubpawlowiczcommented, May 28, 2015

👍

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found