gulp-clean-css
Advanced tools
Comparing version 4.0.0 to 4.1.0
@@ -14,2 +14,5 @@ const applySourceMap = require('vinyl-sourcemaps-apply'); | ||
if (file.isNull()) { | ||
return cb(null, file); | ||
} | ||
if (file.isStream()) { | ||
@@ -25,3 +28,3 @@ this.emit('error', new PluginError('gulp-clean-css', 'Streaming not supported!')); | ||
const content = { | ||
[file.path]: {styles: file.contents.toString()} | ||
[file.path]: {styles: file.contents ? file.contents.toString() : ''} | ||
}; | ||
@@ -33,2 +36,3 @@ if (!_options.rebaseTo && _options.rebase !== false) { | ||
new CleanCSS(_options).minify(content, (errors, css) => { | ||
if (errors) { | ||
@@ -35,0 +39,0 @@ return cb(errors.join(' ')); |
@@ -5,3 +5,3 @@ { | ||
"homepage": "https://github.com/scniro/gulp-clean-css#readme", | ||
"version": "4.0.0", | ||
"version": "4.1.0", | ||
"author": "scniro", | ||
@@ -47,3 +47,3 @@ "license": "MIT", | ||
"plugin-error": "1.0.1", | ||
"through2": "3.0.0", | ||
"through2": "3.0.1", | ||
"vinyl-sourcemaps-apply": "0.2.1" | ||
@@ -54,12 +54,12 @@ }, | ||
"chai-string": "1.5.0", | ||
"coveralls": "3.0.2", | ||
"coveralls": "3.0.3", | ||
"express": "4.16.4", | ||
"fancy-log": "1.3.2", | ||
"gulp": "4.0.0", | ||
"fancy-log": "1.3.3", | ||
"gulp": "4.0.1", | ||
"gulp-concat": "2.6.1", | ||
"gulp-rename": "1.4.0", | ||
"gulp-sass": "4.0.2", | ||
"gulp-sourcemaps": "2.6.4", | ||
"mocha": "5.2.0", | ||
"nyc": "13.1.0", | ||
"gulp-sourcemaps": "2.6.5", | ||
"mocha": "6.1.4", | ||
"nyc": "14.0.0", | ||
"vinyl": "2.2.0" | ||
@@ -66,0 +66,0 @@ }, |
@@ -79,2 +79,2 @@ # gulp-clean-css | ||
[MIT](./LICENSE) © 2018 [scniro](https://github.com/scniro) | ||
[MIT](./LICENSE) © 2019 [scniro](https://github.com/scniro) |
Sorry, the diff of this file is not supported yet
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
7595
53
+ Addedthrough2@3.0.1(transitive)
- Removedthrough2@3.0.0(transitive)
- Removedxtend@4.0.2(transitive)
Updatedthrough2@3.0.1