postcss-prefix
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -10,6 +10,9 @@ const postcss = require('postcss') | ||
root.walkRules(function (rule) { | ||
if (rule.selector === ':root') return | ||
rule.selector = prefix + rule.selector | ||
rule.selectors = rule.selectors.map(function (selector) { | ||
if (rule.selector.indexOf(':root') === 0) return selector | ||
return prefix + selector | ||
}) | ||
rule.selector = rule.selectors.join(', ') | ||
}) | ||
} | ||
} |
{ | ||
"name": "postcss-prefix", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"dependencies": { | ||
@@ -5,0 +5,0 @@ "postcss": "^5.0.8" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1727
63