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.

Ignore specific styles

See original GitHub issue

It would be nice to let clean-css skip specific rulesets/declarations/blocks e.g. by surrounding them with terminated comments, e.g.:

/* #clean-css: ignore */
.ignore-me {
  color: transparent;
}
/* #clean-css: /ignore */

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:11 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
jakubpawlowiczcommented, Jun 16, 2017

Added in master, scheduled for 4.2 release.

1reaction
jakubpawlowiczcommented, Jun 7, 2017

^ the preliminary version supporting the ignore:start / ignore:end syntax which I personally find more intuitive.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Forums - CSS - Is it possible to ignore a specific style on style ...
I have a linked style sheet that alters the look of an input button. I do not want to use that style assignment...
Read more >
How to ignore parent css style - Stack Overflow
I'm wondering how to ignore a parent style and use the default style (none). I'll show my specific case as an example but...
Read more >
Is it possible to ignore all CSS files except for one for a certain ...
Hi, Let's say I have a page with a style file (style.css). On that page I have a div. I have another style...
Read more >
What if I want to ignore certain CSS rules in other HTML ...
Hi everyone :) I've been working on my first project, my first personal profile page and I've been running into some issues. Basically...
Read more >
Ignore specific styles · Issue #895 · clean-css/clean-css - GitHub
In my opinion, it would be nice to not only to set ignore option per block but also other options like the aforementioned...
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