Update index.js

pull/13954/head
Simon H 2 years ago committed by GitHub
parent 2d031534a8
commit 6a46c262f5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -227,7 +227,10 @@ const visitors = {
if (state.minify) { if (state.minify) {
prune_start = last; prune_start = last;
if (separator) state.code.appendLeft(last, separator); if (separator) {
while (state.code.original[prune_start - 1] !== ',') prune_start++;
state.code.update(last, prune_start, separator);
}
} else { } else {
state.code.overwrite(last, selector.start, `${separator} /* (unused) `); state.code.overwrite(last, selector.start, `${separator} /* (unused) `);
} }

Loading…
Cancel
Save