Comparing version 1.0.2 to 1.1.0
@@ -0,6 +1,15 @@ | ||
# 1.1.0 | ||
* Now can merge identifiers such as `@keyframes` and `@counter-style` if they | ||
have duplicated properties but are named differently. | ||
# 1.0.2 | ||
* Improve module loading logic (thanks to @tunnckoCore). | ||
* Improve minification of numeric values, with better support for `rem` and | ||
trailing zeroes (thanks to @TrySound & @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. | ||
@@ -7,0 +16,0 @@ |
15
index.js
@@ -22,6 +22,7 @@ 'use strict'; | ||
'postcss-normalize-url': 'urls', | ||
'postcss-reduce-idents': 'idents', | ||
'./lib/core': null, | ||
// Optimisations after this are sensitive to previous optimisations in | ||
// the pipe, such as whitespace normalising/selector re-ordering | ||
'postcss-merge-idents': 'idents', | ||
'postcss-reduce-idents': 'idents', | ||
'./lib/borderOptimiser': null, | ||
@@ -39,3 +40,2 @@ 'postcss-discard-duplicates': null, | ||
options = options || {}; | ||
options = typeof options === 'object' ? options : {}; | ||
@@ -52,12 +52,5 @@ options.map = options.map || (options.sourcemap ? true : null); | ||
var ns = processors[plugin]; | ||
var opts = options; | ||
var opts = options[ns] || options; | ||
if (typeof ns === 'string') { | ||
if (opts[ns] === false) { | ||
continue; | ||
} | ||
opts = opts[ns] || opts || {}; | ||
} | ||
if (opts.disable) { | ||
if (opts[ns] === false || opts.disable) { | ||
continue; | ||
@@ -64,0 +57,0 @@ } |
{ | ||
"name": "cssnano", | ||
"version": "1.0.2", | ||
"version": "1.1.0", | ||
"description": "A modular minifier, built on top of the PostCSS ecosystem.", | ||
@@ -28,4 +28,4 @@ "main": "index.js", | ||
"postcss-colormin": "^1.2.2", | ||
"postcss-convert-values": "^1.1.1", | ||
"postcss-discard-comments": "^1.1.1", | ||
"postcss-convert-values": "^1.2.1", | ||
"postcss-discard-comments": "^1.1.2", | ||
"postcss-discard-duplicates": "^1.1.2", | ||
@@ -35,2 +35,3 @@ "postcss-discard-empty": "^1.1.0", | ||
"postcss-font-family": "^1.1.0", | ||
"postcss-merge-idents": "^1.0.0", | ||
"postcss-merge-rules": "^1.2.2", | ||
@@ -37,0 +38,0 @@ "postcss-minify-font-weight": "^1.0.0", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25894
24
480
+ Addedpostcss-merge-idents@^1.0.0
+ Addedcss-list@0.1.3(transitive)
+ Addedpostcss-merge-idents@1.0.2(transitive)