postcss-minify-selectors
Advanced tools
Comparing version
@@ -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", |
6765
4.53%97
4.3%