gulp-clean-css
Advanced tools
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", |
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
7674
49
+ Addedclean-css@4.1.3(transitive)
- Removedclean-css@4.1.2(transitive)
Updatedclean-css@4.1.3