clean-css
Advanced tools
Comparing version 4.1.5 to 4.1.6
@@ -494,6 +494,3 @@ var shortenHex = require('./shorten-hex'); | ||
removeUnused(_properties); | ||
if (_properties.length != properties.length) { | ||
removeComments(properties, options); | ||
} | ||
removeComments(properties, options); | ||
} | ||
@@ -658,3 +655,3 @@ | ||
if (levelOptions.removeEmpty && (token[1].length === 0 || (token[2] && token[2].length === 0))) { | ||
if (token[0] == Token.COMMENT && token[1].length === 0 || levelOptions.removeEmpty && (token[1].length === 0 || (token[2] && token[2].length === 0))) { | ||
tokens.splice(i, 1); | ||
@@ -661,0 +658,0 @@ i--; |
@@ -73,3 +73,3 @@ var Spaces = require('../../options/format').Spaces; | ||
isQuoted = isSingleQuoted || isDoubleQuoted; | ||
isRelation = !isEscaped && roundBracketLevel === 0 && RELATION_PATTERN.test(character); | ||
isRelation = !isAttribute && !isEscaped && roundBracketLevel === 0 && RELATION_PATTERN.test(character); | ||
isWhitespace = WHITESPACE_PATTERN.test(character); | ||
@@ -76,0 +76,0 @@ |
{ | ||
"name": "clean-css", | ||
"version": "4.1.5", | ||
"version": "4.1.6", | ||
"author": "Jakub Pawlowicz <contact@jakubpawlowicz.com> (http://twitter.com/jakubpawlowicz)", | ||
@@ -5,0 +5,0 @@ "description": "A well-tested CSS minifier", |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
418327
8855