gulp-clean-css
Advanced tools
Comparing version 2.3.2 to 2.4.0
@@ -0,1 +1,6 @@ | ||
# 2.4.0 (02/05/2017) | ||
- upgrade to clean-css 4.x | ||
- devdep updates | ||
# 2.3.1 (12/17/2016) | ||
@@ -2,0 +7,0 @@ |
@@ -25,13 +25,8 @@ const applySourceMap = require('vinyl-sourcemaps-apply'); | ||
var fileOptions = objectAssign({target: file.path}, options); | ||
if (!fileOptions.relativeTo && file.path) | ||
fileOptions.relativeTo = path.dirname(path.resolve(file.path)); | ||
if (file.sourceMap) | ||
fileOptions.sourceMap = JSON.parse(JSON.stringify(file.sourceMap)); | ||
options.sourceMap = JSON.parse(JSON.stringify(file.sourceMap)); | ||
var style = file.contents ? file.contents.toString() : ''; | ||
new CleanCSS(fileOptions).minify(style, function (errors, css) { | ||
new CleanCSS(options).minify(style, function (errors, css) { | ||
@@ -38,0 +33,0 @@ if (errors) |
@@ -5,3 +5,3 @@ { | ||
"homepage": "https://github.com/scniro/gulp-clean-css#readme", | ||
"version": "2.3.2", | ||
"version": "2.4.0", | ||
"author": "scniro", | ||
@@ -33,5 +33,5 @@ "license": "MIT", | ||
"dependencies": { | ||
"clean-css": "^3.4.23", | ||
"gulp-util": "^3.0.7", | ||
"object-assign": "^4.1.0", | ||
"clean-css": "^4.0.4", | ||
"gulp-util": "^3.0.8", | ||
"object-assign": "^4.1.1", | ||
"through2": "^2.0.3", | ||
@@ -42,5 +42,6 @@ "vinyl-sourcemaps-apply": "^0.2.1" | ||
"chai": "^3.5.0", | ||
"coveralls": "^2.11.15", | ||
"chai-string": "^1.3.0", | ||
"coveralls": "^2.11.16", | ||
"del": "^2.2.2", | ||
"express": "^4.14.0", | ||
"express": "^4.14.1", | ||
"gulp": "^3.9.1", | ||
@@ -51,4 +52,4 @@ "gulp-concat": "^2.6.1", | ||
"gulp-rename": "^1.2.2", | ||
"gulp-sass": "^3.0.0", | ||
"gulp-sourcemaps": "^1.9.1", | ||
"gulp-sass": "^3.1.0", | ||
"gulp-sourcemaps": "^2.4.1", | ||
"mocha": "^3.2.0", | ||
@@ -55,0 +56,0 @@ "vinyl": "^2.0.1", |
@@ -73,3 +73,2 @@ # gulp-clean-css | ||
.pipe(gulp.dest('dist')); | ||
}); | ||
}); | ||
@@ -76,0 +75,0 @@ ``` |
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
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
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
10265
16
48
1
79
+ Addedclean-css@4.2.4(transitive)
+ Addedsource-map@0.6.1(transitive)
- Removedamdefine@1.0.1(transitive)
- Removedclean-css@3.4.28(transitive)
- Removedcommander@2.8.1(transitive)
- Removedgraceful-readlink@1.0.1(transitive)
- Removedsource-map@0.4.4(transitive)
Updatedclean-css@^4.0.4
Updatedgulp-util@^3.0.8
Updatedobject-assign@^4.1.1