postcss-merge-rules
Advanced tools
Comparing version 2.0.5 to 2.0.6
@@ -0,1 +1,7 @@ | ||
# 2.0.6 | ||
* Fixes an issue where forward merging was not checking that the merge candidate | ||
was safe to merge (either contains no vendor prefixes, | ||
or the same vendor prefixes). | ||
# 2.0.5 | ||
@@ -2,0 +8,0 @@ |
@@ -94,3 +94,3 @@ 'use strict'; | ||
var nextRule = second.next(); | ||
if (nextRule && nextRule.type === 'rule') { | ||
if (nextRule && nextRule.type === 'rule' && canMerge(second, nextRule)) { | ||
var nextIntersection = intersect(getDecls(second), getDecls(nextRule)); | ||
@@ -191,5 +191,5 @@ if (nextIntersection.length > intersection.length) { | ||
return function (css) { | ||
css.walkRules(selectorMerger()); | ||
return css.walkRules(selectorMerger()); | ||
}; | ||
}); | ||
module.exports = exports['default']; |
{ | ||
"name": "postcss-merge-rules", | ||
"version": "2.0.5", | ||
"version": "2.0.6", | ||
"description": "Merge CSS rules with PostCSS.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
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
12936