Releases: cssnano/cssnano
Releases · cssnano/cssnano
v5.0.0
Major changes
- 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
Upgrade notes
If you use the cssnano JavaScript API, you need to change your code:
-
Replace
cssnano.process()
withcssnano().process()
(notice the()
aftercssnano
) -
pass cssnano options to
cssnano()
instead ofprocess()
cssnano(cssnanoOptions).process(postcssOptions)
Bug fixes
- 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
- remove vulnerable dependency and always warn with bad SVG input #1034
v4.1.10
4.1.10
Bug Fixes
stylehacks
does not throw error on[attr]
selector
v4.1.9
4.1.9
Performance Improvements
postcss-colormin
: increase performancepostcss-discard-comments
: increase performancepostcss-merge-rules
increase performancepostcss-minify-params
increase performancepostcss-minify-selectors
: increase performancepostcss-normalize-display-values
: increase performancepostcss-normalize-positions
: increase performancepostcss-normalize-repeat-style
: increase performancepostcss-normalize-string
: increase performancepostcss-normalize-timing-functions
: increase performancepostcss-normalize-whitespace
: increase performancepostcss-ordered-values
: increase performancepostcss-reduce-transforms
: increase performancepostcss-svgo
: increase performance
Bug Fixes
postcss-merge-longhand
handle uppercase properties and valuespostcss-minify-gradients
handle uppercase properties and valuespostcss-minify-params
do break@page
rulespostcss-reduce-idents
handle uppercase at-rulespostcss-reduce-initial
now usesrepeat
as initial value formask-repeat
postcss-reduce-initial
handle uppercase value when you convert to initialstylehacks
handle uppercase properties and values
v4.1.8
4.1.8
Performance Improvements
- initial loading time (
require('cssnano')
).
Bug Fixes
postcss-merge-longhand
correctly merging border properties with custom properties.
v4.1.7
4.1.7
Bug Fixes
- republish
cssnano
due broken release.
v4.1.6
4.1.6
Bug Fixes
postcss-merge-longhand
doesn't throw error when merge a border property.
v4.1.5
4.1.5
Bug Fixes
cssnano
now allow to toggling of plugins in presets using boolean configuration option.postcss-merge-longhand
doesn't merge properties withunset
.postcss-merge-longhand
correctly merge borders with custom properties.postcss-merge-longhand
doesn't merge redundant values if declarations are of different importance.
Other changes
postcss-calc
updated to7.0.0
version.
v4.1.4
4.1.4 - 2018-09-27
Other changes
css-declaration-sorter
now use PostCSS 7postcss-calc
now use PostCSS 7
v4.1.3
4.1.3 - 2018-09-25
Other changes
postcss-minify-font-values
now use PostCSS 7postcss-discard-duplicates
now use PostCSS 7
v4.1.2
4.1.2 - 2018-09-25
postcss-svgo
now handle DataURI with uppercasedata
value (DATA:image/*;...
)