cssnano 5 is available

We have released a new major version of cssnano.

Major changes in cssnano 5

How to upgrade

Update the PostCSS dependency

Add postcss to your package.json dependencies field, if your package manager does not install peer dependencies automatically.

JavaScript API changes

If you use the cssnano JavaScript API, change your code:

cssnano(cssnanoOptions).process(postcssOptions)

Bug fixes