Security News
npm Updates Search Experience with New Objective Sorting Options
npm has a revamped search experience with new, more transparent sorting options—Relevance, Downloads, Dependents, and Publish Date.
cssnano-cli
Advanced tools
A CLI for modular minifier cssnano.
With npm do:
npm install cssnano-cli --global
You can also install cssnano-cli as a development dependency of your project, and get the command by this snippet in your .bashrc:
export PATH=$PATH:./node_modules/.bin
$ cssnano --help
Usage: cssnano [input] [output] {OPTIONS}
Options:
--sourcemap, -s Generate a sourcemap within the minified output.
--no-[featureName] Disable any individual processor module by its name.
[featureName] can be any one of these:
autoprefixer filterOptimiser normalizeUrl
calc filterPlugins orderedValues
colormin functionOptimiser reduceIdents
convertValues mergeIdents singleCharset
core mergeLonghand styleCache
discardComments mergeRules svgo
discardDuplicates minifyFontValues uniqueSelectors
discardEmpty minifyParams zindex
discardUnused minifySelectors
--safe Disable advanced optimisations that are not always safe.
Currently, this disables custom identifier reduction,
z-index rebasing, unused at-rule removal & conversion
between absolute length values.
--version, -v Outputs the version number.
--help, -h Outputs this help screen.
You can also use stdin & stdout redirections:
cssnano < main.css > main.min.css
Pull requests are welcome. If you add functionality, then please add unit tests to cover it.
MIT © Ben Briggs
FAQs
A CLI for modular minifier cssnano.
The npm package cssnano-cli receives a total of 6,593 weekly downloads. As such, cssnano-cli popularity was classified as popular.
We found that cssnano-cli 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 has a revamped search experience with new, more transparent sorting options—Relevance, Downloads, Dependents, and Publish Date.
Security News
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.