Skip to content

Releases: cssnano/cssnano

v3.5.0

10 Feb 19:06
Compare
Choose a tag to compare
  • Adds a new optimisation path which can minimise keyword values for
    background-position and the background shorthand.
  • Tweaks to performance in the core module, now performs less AST passes.
  • Now compiled with Babel 6.

v3.4.0

08 Dec 18:00
Compare
Choose a tag to compare
  • Adds a new optimisation path which can minimise gradient parameters
    automatically.

v3.3.2

31 Oct 22:02
Compare
Choose a tag to compare
  • Fixes an issue where using options.safe threw an error when cssnano was
    not used as part of a PostCSS instance, but standalone (such as in modules
    like gulp-cssnano). cssnano now renames safe internally to isSafe.

v3.3.1

09 Oct 09:15
Compare
Choose a tag to compare
  • Unpins postcss-colormin from 2.1.2, as the 2.1.3 & 2.1.4 patches had
    optimization regressions that are now resolved in 2.1.5.

v3.3.0

08 Oct 15:01
Compare
Choose a tag to compare
  • Updated modules to use postcss-value-parser version 3 (thanks to @TrySound).
  • Now converts between transform functions with postcss-reduce-transforms.
    e.g. translate3d(0, 0, 0) becomes translateZ(0).

v3.2.0

23 Sep 09:02
Compare
Choose a tag to compare
  • cssnano no longer converts outline: none to outline: 0, as there are
    some cases where the values are not equivalent (thanks to @TrySound).
  • cssnano no longer converts for example 16px to 1pc by default. Length
    optimisations can be turned on via {convertValues: {length: true}}.
  • Improved minimization of css functions (thanks to @TrySound).

v3.1.0

21 Sep 09:21
Compare
Choose a tag to compare
  • This release swaps postcss-single-charset for postcss-normalize-charset,
    which can detect encoding to determine whether a charset is necessary.
    Optionally, you can set the add option to true to prepend a UTF-8
    charset to the output automatically (thanks to @TrySound).
  • A safe option was added, which disables more aggressive optimisations, as
    a convenient preset configuration (thanks to @TrySound).
  • Added an option to convert from deg to turn & vice versa, & improved
    minification performance in functions (thanks to @TrySound).

v3.0.3

18 Sep 14:32
Compare
Choose a tag to compare
  • Fixes an issue where cssnano was removing spaces around forward slashes in
    string literals (thanks to @TrySound).

v3.0.2

17 Sep 23:30
Compare
Choose a tag to compare
  • Fixes an issue where cssnano was removing spaces around forward slashes in
    calc functions.

v3.0.1

08 Sep 08:37
Compare
Choose a tag to compare
  • Replaced css-list & balanced-match with postcss-value-parser, reducing the
    module's overall size (thanks to @TrySound).