Comparing version 5.0.3 to 5.0.4
@@ -1,1 +0,1 @@ | ||
export const version = "5.0.3"; | ||
export const version = "5.0.4"; |
@@ -1,5 +0,6 @@ | ||
import { walk } from 'css-tree'; | ||
import { walk, keyword } from 'css-tree'; | ||
import { hasNoChildren } from './utils.js'; | ||
const { hasOwnProperty } = Object.prototype; | ||
const skipUsageFilteringAtrule = new Set(['keyframes']); | ||
@@ -84,2 +85,7 @@ function cleanUnused(selectorList, usageData) { | ||
// avoid usage filtering for some at-rules | ||
if (this.atrule && skipUsageFilteringAtrule.has(keyword(this.atrule.name).basename)) { | ||
return; | ||
} | ||
const { usage } = options; | ||
@@ -86,0 +92,0 @@ |
@@ -20,8 +20,2 @@ export default function compressFont(node) { | ||
this.remove(item); | ||
} else if (node.name === 'medium') { | ||
const next = item.next; | ||
if (!next || next.data.type !== 'Operator') { | ||
this.remove(item); | ||
} | ||
} | ||
@@ -28,0 +22,0 @@ } |
{ | ||
"name": "csso", | ||
"version": "5.0.3", | ||
"version": "5.0.4", | ||
"description": "CSS minifier with structural optimisations", | ||
@@ -5,0 +5,0 @@ "author": "Sergey Kryzhanovsky <skryzhanovsky@ya.ru> (https://github.com/afelix)", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
600882