Skip to content

Instantly share code, notes, and snippets.

@burnified
Created June 16, 2014 16:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save burnified/1248b752e8c92cb8c4c7 to your computer and use it in GitHub Desktop.
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
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