gulp-svgmin
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -8,4 +8,4 @@ var es = require('event-stream'); | ||
svgo.optimize(String(file.contents), function(result) { | ||
// If SVGO throws an error, pipe the original stream instead | ||
file.contents = (result.error) ? String(file.contents) : result.data; | ||
if (result.error) return cb(result.error); | ||
file.contents = new Buffer(result.data); | ||
cb(null, file); | ||
@@ -12,0 +12,0 @@ }); |
{ | ||
"name": "gulp-svgmin", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Minify SVG files with gulp.", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
2884