Skip to content

Commit 378583c

Browse files
committed
Update to support postcss v5 syntax
1 parent 01966b4 commit 378583c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,11 @@ module.exports = postcss.plugin('postcss-constants', function (opts) {
6060
};
6161

6262
return function (css) {
63-
css.eachInside(function (node) {
63+
css.walk(function (node) {
6464
globalNode = node;
6565
if (node.prop && node.prop.indexOf('~') > -1) {
6666
getConstants(node.prop, node.value, node.source.input.from);
67-
node.removeSelf();
67+
node.remove();
6868
}
6969

7070
if (node.type === 'decl') {

0 commit comments

Comments
 (0)