Skip to content

Releases: cssnano/cssnano

v5.0.0

10 Apr 12:13
Compare
Choose a tag to compare

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() with cssnano().process() (notice the () after cssnano)

  • pass cssnano options to cssnano() instead of process()

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

14 Feb 16:53
Compare
Choose a tag to compare

4.1.10

Bug Fixes

  • stylehacks does not throw error on [attr] selector

v4.1.9

12 Feb 18:34
Compare
Choose a tag to compare

4.1.9

Performance Improvements

  • postcss-colormin: increase performance
  • postcss-discard-comments: increase performance
  • postcss-merge-rules increase performance
  • postcss-minify-params increase performance
  • postcss-minify-selectors: increase performance
  • postcss-normalize-display-values: increase performance
  • postcss-normalize-positions: increase performance
  • postcss-normalize-repeat-style: increase performance
  • postcss-normalize-string: increase performance
  • postcss-normalize-timing-functions: increase performance
  • postcss-normalize-whitespace: increase performance
  • postcss-ordered-values: increase performance
  • postcss-reduce-transforms: increase performance
  • postcss-svgo: increase performance

Bug Fixes

  • postcss-merge-longhand handle uppercase properties and values
  • postcss-minify-gradients handle uppercase properties and values
  • postcss-minify-params do break @page rules
  • postcss-reduce-idents handle uppercase at-rules
  • postcss-reduce-initial now uses repeat as initial value for mask-repeat
  • postcss-reduce-initial handle uppercase value when you convert to initial
  • stylehacks handle uppercase properties and values

v4.1.8

22 Dec 14:27
Compare
Choose a tag to compare

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

22 Oct 15:13
Compare
Choose a tag to compare

4.1.7

Bug Fixes

  • republish cssnano due broken release.

v4.1.6

22 Oct 15:01
Compare
Choose a tag to compare

4.1.6

Bug Fixes

  • postcss-merge-longhand doesn't throw error when merge a border property.

v4.1.5

17 Oct 22:00
Compare
Choose a tag to compare

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 with unset.
  • 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 to 7.0.0 version.

v4.1.4

27 Sep 10:28
Compare
Choose a tag to compare

4.1.4 - 2018-09-27

Other changes

  • css-declaration-sorter now use PostCSS 7
  • postcss-calc now use PostCSS 7

v4.1.3

25 Sep 14:18
Compare
Choose a tag to compare

4.1.3 - 2018-09-25

Other changes

  • postcss-minify-font-values now use PostCSS 7
  • postcss-discard-duplicates now use PostCSS 7

v4.1.2

25 Sep 10:45
Compare
Choose a tag to compare

4.1.2 - 2018-09-25

  • postcss-svgo now handle DataURI with uppercase data value (DATA:image/*;...)