lepu-test-platform-web/node_modules/csso/lib/compressor/clean/Identifier.js

10 lines
326 B
JavaScript
Raw Normal View History

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);
}
}
};