first commit
This commit is contained in:
9
build/node_modules/csso/lib/compressor/clean/Identifier.js
generated
vendored
Normal file
9
build/node_modules/csso/lib/compressor/clean/Identifier.js
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
module.exports = function cleanIdentifier(node, item, list) {
|
||||
// remove useless universal selector
|
||||
if (this.selector !== null && node.name === '*') {
|
||||
// remove when universal selector isn't last
|
||||
if (item.next && item.next.data.type !== 'Combinator') {
|
||||
list.remove(item);
|
||||
}
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user