fix css-vars case

pull/7738/head
Tan Li Hau 6 years ago
parent 7b1e4dac3f
commit 856fe4027c

@ -47,7 +47,7 @@ export default function read_style(parser: Parser, start: number, attributes: No
}
}
if (node.type === 'Declaration' && node.value.children.length === 0) {
if (node.type === 'Declaration' && node.value.type === 'Value' && node.value.children.length === 0) {
this.remove();
}

Loading…
Cancel
Save