Navigation Menu

Skip to content

Releases: cssnano/cssnano

v6.1.2

25 Mar 19:24
Compare
Choose a tag to compare

Bug Fixes

  • preserve correct order of gap and column-gap properties

Patch Changes

  • update autoprefixer

v6.1.1

20 Mar 13:49
18206e6
Compare
Choose a tag to compare

Patch changes

  • update selector parser
  • in the minify font plugin, you can pass a function to determine whether a css variable is one of font, font-family, and font-weight to determine whether the variable needs to remove quotes.

v6.1.0

06 Mar 14:30
Compare
Choose a tag to compare

This release contains a lot of fixes to Browserslist support thanks to @colinrotherham

Features

  • support Browserslist options in more plugins
  • support overriding autoprefixer options

Additionally, this release includes improved TypeScript types.

v6.0.5

24 Feb 11:32
Compare
Choose a tag to compare

Bug Fixes

  • correctly minify font declaration in edge cases
  • preserve initial property in -webkit-line-clamp

v6.0.4

22 Feb 19:58
Compare
Choose a tag to compare

Bug Fixes

  • preserve empty @layer declarations
  • avoid crashing when encountering @layer without any braces afterwards
  • update to latest lilconfig dependency to avoid vulnerability

v6.0.3

03 Jan 17:35
Compare
Choose a tag to compare

Bug fixes

  • do not sort unknown properties

Other

  • Require latest browserslist and postcss-selector-parser

v6.0.2

14 Dec 17:19
Compare
Choose a tag to compare
  • fix: update cssnano peer dependency to 8.4.31 to avoid security issue
  • fix: update postcss-calc to 9.0.1 to solve disappearing expressions inside two brackets
  • deps(postcss-svgo): update SVGO to 3.0.5 and update doc
  • chore: update css-declaration-sorter
  • fix(postcss-minify-selectors): prevent mangling of timeline range names
  • fix(postcss-convert-values): keep percent unit in @Property
  • chore(cssnano): update lilconfig to 3.0.0

v6.0.1

30 Apr 19:10
Compare
Choose a tag to compare

Bug Fixes

  • fix(postcss-merge-rules): do not merge nested rules (eb9a9a1)
  • fix(postcss-reduce-idents): minify grid line names correctly (2af6687)

v6.0.0

27 Mar 16:58
8e89938
Compare
Choose a tag to compare

Major Changes

  • 99d1e6a: postcss-normalize-url: remove normalize-url configuration options
  • 4e272f8: postcss-svgo: Upgrade dependency svgo to v3 and increase the minimum supported node version to v14
  • ca9d3f5: Switch minimum supported Node version to 14 for all packages
  • 39a2040: feat!(cssnano): remove undocumented YAML config support

Migration instructions

  • If you're not happy with the defaults for the normalize-url transform, turn it off completely. Options were removed as most would change the meaning of the URL, which is unexpcted in the case of CSS minification.
  • In the unlikely event you're using YAML to configure cssnano, move the cssnano configuration inside the PostCSS config or use a configuration file in CommonJS or JSON format.

v5.1.15

15 Feb 21:53
Compare
Choose a tag to compare

Bug Fixes

  • fix(postcsss-reduce-initial): fix mask-repeat conversion
  • fix(postcss-colormin): don't minify colors in src declarations
  • fix(postcss-merge-rules): do not merge conflicting flex and border properties