cssnano
Version:
A modular minifier, built on top of the PostCSS ecosystem.
79 lines (51 loc) • 2.17 kB
Markdown
# 1.4.3
* Fixes incorrect minification of `background:none` to `background:0 0`.
# 1.4.2
* Fixes an issue with nested URLs inside `url()` functions.
# 1.4.1
* Addresses an issue where whitespace removal after a CSS function would cause
rendering issues in Internet Explorer.
# 1.4.0
* Adds support for removal of unused `@keyframes` and `@counter-style` at-rules.
* comments: adds support for user-directed removal of comments, with the
`remove` option (thanks to @dmitrykiselyov).
* comments: `removeAllButFirst` now operates on each CSS tree, rather than the
first one passed to cssnano.
# 1.3.3
* Fixes incorrect minification of `border:none` to `border:0 0`.
# 1.3.2
* Improved selector minifying logic, leading to better compression of attribute
selectors.
* Improved comment discarding logic.
# 1.3.1
* Fixes crash on undefined `decl.before` from prior AST.
# 1.3.0
* Added support for bundling cssnano using webpack (thanks to @MoOx).
# 1.2.1
* Fixed a bug where a CSS function keyword inside its value would throw
an error.
# 1.2.0
* Better support for merging properties without the existance of a shorthand
override.
* Can now 'merge forward' adjacent rules as well as the previous 'merge behind'
behaviour, leading to better compression.
* Selector re-ordering now happens last in the chain of plugins, to help clean
up merged selectors.
# 1.1.0
* Now can merge identifiers such as `@keyframes` and `@counter-style` if they
have duplicated properties but are named differently.
* Fixes an issue where duplicated keyframes with the same name would cause
an infinite loop.
# 1.0.2
* Improve module loading logic (thanks to @tunnckoCore).
* Improve minification of numeric values, with better support for `rem`,
trailing zeroes and slash/comma separated values
(thanks to @TrySound & @tunnckoCore).
* Fixed an issue where `-webkit-tap-highlight-color` values were being
incorrectly transformed to `transparent`. This is not supported in Safari.
* Added support for viewport units (thanks to @TrySound).
* Add MIT license file.
# 1.0.1
* Add repository/author links to package.json.
# 1.0.0
* Initial release.