gulp-minify-css
Advanced tools
Comparing version 0.3.10 to 0.3.11
10
index.js
@@ -66,3 +66,4 @@ var path = require('path'), | ||
if(file.isStream()) { | ||
file.contents = file.contents.pipe(new BufferStreams(minifyCSSTransform(opt, file))); | ||
file.contents = file.contents.pipe(new BufferStreams(minifyCSSTransform(opt, file))) | ||
.on('error', this.emit.bind(this, 'error')); | ||
done(null, file); | ||
@@ -78,3 +79,8 @@ return; | ||
var newContents = minify(opt, file, file.contents); | ||
try { | ||
var newContents = minify(opt, file, file.contents); | ||
} catch (err) { | ||
this.emit('error', new gutil.PluginError('minify-css', err, { fileName: file.path } )); | ||
return done(null, file); | ||
} | ||
@@ -81,0 +87,0 @@ // Restore original "relativeTo" value |
{ | ||
"name": "gulp-minify-css", | ||
"description": "Minify css with clean-css.", | ||
"version": "0.3.10", | ||
"version": "0.3.11", | ||
"repository": "https://github.com/jonathanepollack/gulp-minify-css.git", | ||
@@ -6,0 +6,0 @@ "homepage": "https://github.com/jonathanepollack/gulp-minify-css", |
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
14288
329