Skip to content

Commit 9edfd7c

Browse files
committed
fix: issue #183
1 parent 1bce741 commit 9edfd7c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Diff for: src/index.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,10 @@ function getProperty(nodes) {
1616
return;
1717
}
1818

19-
rule.each(({prop, value}) => {
20-
propertys[prop] = value;
19+
rule.each(({type, prop, value}) => {
20+
if (type === 'decl') {
21+
propertys[prop] = value;
22+
}
2123
});
2224
});
2325

0 commit comments

Comments
 (0)