Created
June 16, 2014 16:17
-
-
Save burnified/1248b752e8c92cb8c4c7 to your computer and use it in GitHub Desktop.
Add to your gulpfile.js / Using Gulp for some SVG>PNG time saving
This file contains hidden or 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
var raster = require('gulp-raster'); | |
var rename = require('gulp-rename'); | |
gulp.src('./src/**/svg/*.svg') | |
.pipe(raster()) | |
.pipe(rename({extname: '.png'})) | |
.pipe(gulp.dest('./dist')), |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment