postcss-sorting
Advanced tools
Comparing version 1.2.1 to 1.2.2
10
index.js
@@ -187,2 +187,6 @@ var postcss = require('postcss'); | ||
if (node.type === 'comment') { | ||
if (index === 0 && node.raws.before.indexOf('\n') === -1) { | ||
processed.push(node); | ||
} | ||
return; | ||
@@ -226,4 +230,6 @@ } | ||
rule.removeAll(); | ||
rule.append(processed); | ||
if (processed.length) { | ||
rule.removeAll(); | ||
rule.append(processed); | ||
} | ||
@@ -230,0 +236,0 @@ // Remove all empty lines and add empty lines between groups |
{ | ||
"name": "postcss-sorting", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"description": "PostCSS plugin to sort rules content with specified order.", | ||
@@ -25,2 +25,3 @@ "keywords": [ | ||
"eslint": "^1.10.2", | ||
"postcss-less": "^0.2.0", | ||
"postcss-scss": "^0.1.5" | ||
@@ -27,0 +28,0 @@ }, |
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
57003
11
1425
4