postcss-merge-rules
Advanced tools
Comparing version
@@ -0,1 +1,5 @@ | ||
# 1.2.2 | ||
* Fixed an issue where the plugin crashed if node.parent was undefined. | ||
# 1.2.1 | ||
@@ -2,0 +6,0 @@ |
@@ -46,3 +46,3 @@ 'use strict'; | ||
// If an at rule, ensure that the parameters are the same | ||
if (ruleA.parent.type !== 'root' && ruleB.parent.type !== 'root') { | ||
if (hasParent && ruleA.parent.type !== 'root' && ruleB.parent.type !== 'root') { | ||
sameType = sameType && ruleA.parent.params === ruleB.parent.params; | ||
@@ -49,0 +49,0 @@ } |
{ | ||
"name": "postcss-merge-rules", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"description": "Merge CSS rules with PostCSS.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
9053
1.06%