Socket
Socket
Sign inDemoInstall

postcss-minify-selectors

Package Overview
Dependencies
Maintainers
1
Versions
67
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 1.0.0 to 1.1.0

4

CHANGELOG.md

@@ -0,3 +1,7 @@

# 1.1.0
* Now minifies `from` to `0%` and `100%` to `to` in keyframe declarations.
# 1.0.0
* Initial release.

@@ -41,2 +41,6 @@ 'use strict';

});
// Minimise from and 100% in keyframe rules
if (rule.parent.type !== 'root' && ~rule.parent.name.indexOf('keyframes')) {
selector = selector.replace('from', '0%').replace('100%', 'to');
}
// Trim whitespace around selector combinators

@@ -43,0 +47,0 @@ rule.selector = selector.replace(/\s*([>+~])\s*/g, '$1');

2

package.json
{
"name": "postcss-minify-selectors",
"version": "1.0.0",
"version": "1.1.0",
"description": "Minify selectors with PostCSS.",

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc