Created
March 14, 2014 19:15
-
-
Save JimBobSquarePants/9554743 to your computer and use it in GitHub Desktop.
Gulp-svgmin sample
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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