Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cssnano

Package Overview
Dependencies
Maintainers
1
Versions
147
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cssnano - npm Package Compare versions

Comparing version 1.0.2 to 1.1.0

13

CHANGELOG.md

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

# 1.1.0
* Now can merge identifiers such as `@keyframes` and `@counter-style` if they
have duplicated properties but are named differently.
# 1.0.2
* Improve module loading logic (thanks to @tunnckoCore).
* Improve minification of numeric values, with better support for `rem` and
trailing zeroes (thanks to @TrySound & @tunnckoCore).
* Improve minification of numeric values, with better support for `rem`,
trailing zeroes and slash/comma separated values
(thanks to @TrySound & @tunnckoCore).
* Fixed an issue where `-webkit-tap-highlight-color` values were being
incorrectly transformed to `transparent`. This is not supported in Safari.
* Added support for viewport units (thanks to @TrySound).
* Add MIT license file.

@@ -7,0 +16,0 @@

15

index.js

@@ -22,6 +22,7 @@ 'use strict';

'postcss-normalize-url': 'urls',
'postcss-reduce-idents': 'idents',
'./lib/core': null,
// Optimisations after this are sensitive to previous optimisations in
// the pipe, such as whitespace normalising/selector re-ordering
'postcss-merge-idents': 'idents',
'postcss-reduce-idents': 'idents',
'./lib/borderOptimiser': null,

@@ -39,3 +40,2 @@ 'postcss-discard-duplicates': null,

options = options || {};
options = typeof options === 'object' ? options : {};

@@ -52,12 +52,5 @@ options.map = options.map || (options.sourcemap ? true : null);

var ns = processors[plugin];
var opts = options;
var opts = options[ns] || options;
if (typeof ns === 'string') {
if (opts[ns] === false) {
continue;
}
opts = opts[ns] || opts || {};
}
if (opts.disable) {
if (opts[ns] === false || opts.disable) {
continue;

@@ -64,0 +57,0 @@ }

{
"name": "cssnano",
"version": "1.0.2",
"version": "1.1.0",
"description": "A modular minifier, built on top of the PostCSS ecosystem.",

@@ -28,4 +28,4 @@ "main": "index.js",

"postcss-colormin": "^1.2.2",
"postcss-convert-values": "^1.1.1",
"postcss-discard-comments": "^1.1.1",
"postcss-convert-values": "^1.2.1",
"postcss-discard-comments": "^1.1.2",
"postcss-discard-duplicates": "^1.1.2",

@@ -35,2 +35,3 @@ "postcss-discard-empty": "^1.1.0",

"postcss-font-family": "^1.1.0",
"postcss-merge-idents": "^1.0.0",
"postcss-merge-rules": "^1.2.2",

@@ -37,0 +38,0 @@ "postcss-minify-font-weight": "^1.0.0",

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