postcss-minify-selectors
Advanced tools
Comparing version 1.0.0 to 1.1.0
@@ -0,3 +1,7 @@ | ||
# 1.1.0 | ||
* Now minifies `from` to `0%` and `100%` to `to` in keyframe declarations. | ||
# 1.0.0 | ||
* Initial release. |
@@ -41,2 +41,6 @@ 'use strict'; | ||
}); | ||
// Minimise from and 100% in keyframe rules | ||
if (rule.parent.type !== 'root' && ~rule.parent.name.indexOf('keyframes')) { | ||
selector = selector.replace('from', '0%').replace('100%', 'to'); | ||
} | ||
// Trim whitespace around selector combinators | ||
@@ -43,0 +47,0 @@ rule.selector = selector.replace(/\s*([>+~])\s*/g, '$1'); |
{ | ||
"name": "postcss-minify-selectors", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "Minify selectors with PostCSS.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
6765
97