gulp-svgmin
Advanced tools
Comparing version 0.4.8 to 1.0.0
@@ -38,5 +38,5 @@ /* jshint node:true */ | ||
// Plugin function | ||
function minifySVGGulp(plugins) { | ||
function minifySVGGulp(options) { | ||
var stream = new Transform({objectMode: true}); | ||
var svgo = new SVGOptim({ plugins: plugins }); | ||
var svgo = new SVGOptim(options); | ||
@@ -43,0 +43,0 @@ stream._transform = function(file, unused, done) { |
{ | ||
"name": "gulp-svgmin", | ||
"version": "0.4.8", | ||
"version": "1.0.0", | ||
"description": "Minify SVG files with gulp.", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -33,9 +33,19 @@ # [gulp](https://github.com/gulpjs/gulp)-svgmin [![Build Status](https://travis-ci.org/ben-eb/gulp-svgmin.svg?branch=master)](https://travis-ci.org/ben-eb/gulp-svgmin) [![NPM version](https://badge.fury.io/js/gulp-svgmin.svg)](http://badge.fury.io/js/gulp-svgmin) [![Dependency Status](https://gemnasium.com/ben-eb/gulp-svgmin.png)](https://gemnasium.com/ben-eb/gulp-svgmin) | ||
return gulp.src('logo.svg') | ||
.pipe(svgmin([{ | ||
removeDoctype: false | ||
}, { | ||
removeComments: false | ||
}])) | ||
.pipe(svgmin({ | ||
plugins: [{ | ||
removeDoctype: false | ||
}, { | ||
removeComments: false | ||
}] | ||
})) | ||
.pipe(gulp.dest('./out')); | ||
}); | ||
``` | ||
## Contributing | ||
Pull requests are welcome. If you add functionality, then please add unit tests to cover it. | ||
## License | ||
MIT © Ben Briggs |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
0
51
5491
5
60