postcss-minify-selectors
Advanced tools
Comparing version 1.4.7 to 1.5.0
@@ -0,1 +1,6 @@ | ||
# 1.5.0 | ||
* Added support for converting pseudo elements with double colon syntax to | ||
the single colon syntax. | ||
# 1.4.7 | ||
@@ -2,0 +7,0 @@ |
@@ -9,5 +9,6 @@ 'use strict'; | ||
var unquote = require('./lib/unquote'); | ||
var parser = require('postcss-selector-parser'); | ||
var pseudoElements = ['::before', '::after', '::first-letter', '::first-line']; | ||
function uniq (params, map) { | ||
@@ -88,2 +89,5 @@ var transform = uniqs(comma(params).map(function (selector) { | ||
}); | ||
if (~pseudoElements.indexOf(selector.value)) { | ||
selector.value = selector.value.slice(1); | ||
} | ||
} | ||
@@ -90,0 +94,0 @@ if (selector.type === 'selector' && selector.parent.type !== 'pseudo') { |
{ | ||
"name": "postcss-minify-selectors", | ||
"version": "1.4.7", | ||
"version": "1.5.0", | ||
"description": "Minify selectors with PostCSS.", | ||
@@ -5,0 +5,0 @@ "main": "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
9045
114