UNPKG

cssnano

Version:

A modular minifier, built on top of the PostCSS ecosystem.

106 lines (70 loc) 3.07 kB
# current --- # 2.0.2 * Extract trbl value reducing into a separate module. * Refactor core longhand optimiser to not rely on trbl cache. * Fixes parsing of some selector hacks. # 2.0.1 * Add `postcss-plugin` keyword to package.json. * Wraps all core processors with the PostCSS 4.1 plugin API. # 2.0.0 * Adds removal of outdated vendor prefixes based on browser support. * Addresses an issue where relative path separators were converted to backslashes on Windows. * cssnano will now detect previous plugins and silently disable them when the functionality overlaps. This is to enable faster interoperation with cssnext. * cssnano now exports as a PostCSS plugin. The simple interface is exposed at `cssnano.process(css, opts)` instead of `cssnano(css, opts)`. * Improved URL detection when using two or more in the same declaration. * node 0.10 is no longer officially supported. # 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.