
Security News
npm v12 Ships With Install Scripts Off by Default, Begins Deprecating 2FA-Bypass Tokens
npm v12 is generally available, turning install scripts off by default and beginning the deprecation of 2FA-bypass publishing tokens.
cssnano-ignore-add
Advanced tools
Ignore CSSNANO operations in lines using comments
These packages will be moved to
CSSNANOsoon 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
postcssplugin, 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-add 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.

Security News
npm v12 is generally available, turning install scripts off by default and beginning the deprecation of 2FA-bypass publishing tokens.

Research
/Security News
Socket tracks the activity as Operation “Muck and Load”: a threat actor uses commit-farming workflows, public dead drops, and protected archives to stage Windows RAT and infostealer malware.

Security News
pnpm 11.10 hardens registry auth to block token redirection, tightens pack-app and deploy, and makes the Rust port (v12) installable.