postcss-minify-params
Advanced tools
Comparing version 1.2.1 to 1.2.2
@@ -0,1 +1,7 @@ | ||
# 1.2.2 | ||
* Resolves an issue where `all and` would be removed from | ||
`@media not all and (conditions) {}`, causing an invalid media query to | ||
be output. | ||
# 1.2.1 | ||
@@ -2,0 +8,0 @@ |
@@ -76,3 +76,8 @@ var postcss = require('postcss'); | ||
} else if (node.type === 'word') { | ||
if (node.value === 'all' && rule.name === 'media') { | ||
var prevWord = params.nodes[index - 2]; | ||
if ( | ||
node.value === 'all' && | ||
rule.name === 'media' && | ||
!prevWord | ||
) { | ||
var nextSpace = params.nodes[index + 1]; | ||
@@ -79,0 +84,0 @@ var nextWord = params.nodes[index + 2]; |
{ | ||
"name": "postcss-minify-params", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"description": "Minify at-rule params with PostCSS", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
6826
92