slug | title |
---|---|
cssnano-5-release-notes |
cssnano 5 release |
We have released a new version of cssnano.
- requires Node >= 10.13
- PostCSS 8 API, so cssnano 5 does not emit warnings when running under PostCSS 8
- updated to SVGO 2, fixing many SVG minification bugs
- updated css-value-parser and css-selector-parser, fixing many bugs
If you were using the cssnano JavaScript API, you might to make some changes to your code:
-
Replace
cssnano.process()
withcssnano().process()
(notice the()
aftercssnano
) -
cssnano specific options go into the options go to cssnano instead of process
cssnano(cssnanoOptions).process(postcssOptions)
- fix improperly discarding
@font-face
declarations #726 - partially fix some isues where cssnano did not combine rules when used together with
postcss-nested
#1004 - fix
translate3d()
minification #920 - fix minification of values starting with
e
#589, #984 - fix minification of percentage vaalues #962, #957
- fix minification of
aspect-ratio
#963 - fix merging of
@supports
rules #974 - fix sorting of longhand and shorthand properties #535
- warn instead of crashing with unexpected SVG input #1034