postcss-minify-selectors
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -0,1 +1,5 @@ | ||
# 1.2.1 | ||
* Passes original test case in issue 1. | ||
# 1.2.0 | ||
@@ -2,0 +6,0 @@ |
18
index.js
@@ -34,11 +34,2 @@ 'use strict'; | ||
}).map(minAttributes).join(','); | ||
// Trim any useless space inside negation pseudo classes | ||
selector = balanced.replacements({ | ||
source: selector, | ||
open: ':not(', | ||
close: ')', | ||
replace: function (body, head, tail) { | ||
return head + uniq(body) + tail; | ||
} | ||
}); | ||
// Minimise from and 100% in keyframe rules | ||
@@ -58,2 +49,11 @@ if (rule.parent.type !== 'root' && ~rule.parent.name.indexOf('keyframes')) { | ||
rule.selector = roq(selector, function (range) { | ||
// Trim any useless space inside negation pseudo classes | ||
range = balanced.replacements({ | ||
source: range, | ||
open: ':not(', | ||
close: ')', | ||
replace: function (body, head, tail) { | ||
return head + uniq(body) + tail; | ||
} | ||
}); | ||
return range.replace(/\s*([>+~])\s*/g, '$1'); | ||
@@ -60,0 +60,0 @@ }); |
{ | ||
"name": "postcss-minify-selectors", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"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
8855