Optimizing SVG vector graphics files with Gulp
A thin wrapper around svgo for Gulp. Will pass-through any non-svg files unaltered so you can use in conjuction with other image optimzation tools if you don't want a separate task for different file formats.
$ npm install --save-dev gulp-svgo
var gulp = require('gulp'),
svgo = require('gulp-svgo');
gulp.task('default', function() {
gulp.src('src/img/*')
.pipe(svgo())
.pipe(gulp.dest('dest/img'));
});
Options are passed directly to svgo instance.