A modular minifier, built on top of the PostCSS ecosystem.
cssnano is a modular minifier that aims to utilise small modules from the
PostCSS ecosystem, rather than being an all-encompassing module that may be
difficult to contribute to. Because it is written on top of PostCSS, it is able
to do more than simple whitespace transforms - including advanced optimisations
such as custom identifier reduction,
z-index rebasing, and adjacent selector
For further details check out the website:
- Installation guide for your build process.
- Full list of optimisations.
- Customise the output (options documentation).
Pull requests are welcome. If you add functionality, then please add unit tests to cover it.
MIT © Ben Briggs