Opal-Estate-Pro/node_modules/csso/lib/compressor/clean/Identifier.js
2019-09-13 11:27:52 +07:00

10 lines
326 B
JavaScript
Executable File

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