Skip to content

Instantly share code, notes, and snippets.

@JimBobSquarePants
Created March 14, 2014 19:15
Show Gist options
  • Save JimBobSquarePants/9554743 to your computer and use it in GitHub Desktop.
Save JimBobSquarePants/9554743 to your computer and use it in GitHub Desktop.
Gulp-svgmin sample
// The aim is to get a folder of svg files and somehow package them in a single file as data uri
var gulp = require('gulp');
var svgmin = require('gulp-svgmin');
gulp.task('default', function() {
return gulp.src('.in/*.svg')
.pipe(svgmin())
.pipe(gulp.dest('./out'));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment