Socket
Socket
Sign inDemoInstall

gulp-clean-css

Package Overview
Dependencies
Maintainers
1
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-clean-css - npm Package Compare versions

Comparing version 3.3.1 to 3.4.0

14

index.js

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

options = options || {};
options = Object.assign(options || {});

@@ -30,13 +30,7 @@ if (arguments.length === 1 && Object.prototype.toString.call(arguments[0]) === '[object Function]')

if(!options.rebaseTo)
options.rebase = false;
let contents = file.contents ? file.contents.toString() : '';
let pass = options.rebaseTo ? {[file.path]: {styles: contents}} : contents;
let style = {
[file.path]: {
styles: file.contents ? file.contents.toString() : ''
}
};
new CleanCSS(options).minify(pass, function (errors, css) {
new CleanCSS(options).minify(style, function (errors, css) {
if (errors)

@@ -43,0 +37,0 @@ return cb(errors.join(' '));

@@ -5,3 +5,3 @@ {

"homepage": "https://github.com/scniro/gulp-clean-css#readme",
"version": "3.3.1",
"version": "3.4.0",
"author": "scniro",

@@ -33,3 +33,3 @@ "license": "MIT",

"dependencies": {
"clean-css": "4.1.2",
"clean-css": "4.1.3",
"gulp-util": "3.0.8",

@@ -44,3 +44,3 @@ "through2": "2.0.3",

"del": "2.2.2",
"express": "4.15.2",
"express": "4.15.3",
"gulp": "3.9.1",

@@ -47,0 +47,0 @@ "gulp-concat": "2.6.1",

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