🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

postcss-minify-selectors

Package Overview
Dependencies
Maintainers
2
Versions
68
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-minify-selectors - npm Package Compare versions

Comparing version

to
2.1.1

5

CHANGELOG.md

@@ -0,1 +1,6 @@

# 2.1.1
* Fixes a compatibility issue with `modular-css` - now the module will only
use the raw selector value if it equal to the 'cleaned' selector value.
# 2.1.0

@@ -2,0 +7,0 @@

2

dist/index.js

@@ -133,3 +133,3 @@ 'use strict';

function optimise(rule) {
var selector = rule.raws.selector && rule.raws.selector.raw || rule.selector;
var selector = rule.raws.selector && rule.raws.selector.value === rule.selector ? rule.raws.selector.raw : rule.selector;
// If the selector ends with a ':' it is likely a part of a custom mixin,

@@ -136,0 +136,0 @@ // so just pass through.

{
"name": "postcss-minify-selectors",
"version": "2.1.0",
"version": "2.1.1",
"description": "Minify selectors with PostCSS.",

@@ -5,0 +5,0 @@ "main": "dist/index.js",