We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3e3d9e commit b23f0abCopy full SHA for b23f0ab
index.js
@@ -104,7 +104,7 @@ module.exports = postcss.plugin('postcss-css-variables', function(options) {
104
prop: variableName,
105
value: variableValue
106
});
107
- varDecl.moveTo(variableRootRule);
+ variableRootRule.append(varDecl);
108
109
// Add the entry to the map
110
prevVariableMap[variableName] = (prevVariableMap[variableName] || []).concat({
@@ -151,7 +151,7 @@ module.exports = postcss.plugin('postcss-css-variables', function(options) {
151
splitOutRule.parent = decl.parent.parent;
152
153
var declClone = decl.clone();
154
- declClone.moveTo(splitOutRule);
+ splitOutRule.append(declClone);
155
156
var prop = decl.prop;
157
map[prop] = (map[prop] || []).concat({
0 commit comments