
Product
Introducing Tier 1 Reachability: Precision CVE Triage for Enterprise Teams
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
cssnano-ignore-remove
Advanced tools
Ignore CSSNANO operations in lines using comments
These packages will be moved to
CSSNANO
soon once its ready to use
WORK IN PROGRESS :warning:
This will be soon ship with cssnano default preset
.
In the meantime, install it using
$ yarn add cssnano-ignore-add cssnano-ignore-remove -D
and add this it in your postcss
config
// postcss.config.js
module.exports = {
plugins: [
require('cssnano-ignore-remove'),
require('cssnano'),
require('cssnano-ignore-add'),
],
};
This can be just with any of
postcss
plugin, not just with cssnano. But the comment will be same
/* cssnano-ignore-line */
In order to stop cssnano doing optimization on some particular line, you simply need to add /* cssnano-ignore-line */
comment over that line.
Currently we support only for declaration statement, that mean you can add this comment over CSS declaration line not over the selector list in Rule declaration
example
// Correct example
.classname {
margin: auto;
/* cssnano-ignore-line */
color: red;
}
// Wrong example
/* cssnano-ignore-line */
.classname {
margin: auto;
color: red;
}
/* cssnano-ignore-line */
@media screen and (min-width: 480px) {
ul {
list-style: none;
}
}
It simple remove the next line before running the cssnano plugins and then add them at the end.
It contains two packages, one to remove the line and another to add it .
this plugins are tested with
There are not many test cases. More will be added soon
FAQs
Ignore CSSNANO operations in lines using comments
We found that cssnano-ignore-remove demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.