A gulp plugin for converting SVGs to PNGs.
First, install gulp-svg2png
as a development dependency:
npm install --save-dev gulp-svg2png
Then, add it to your gulpfile.js
:
var svg2png = require('gulp-svg2png');
gulp.task('svg2png', function () {
gulp.src('./specs/assets/**/*.svg')
.pipe(svg2png())
.pipe(gulp.dest('./build'));
});
options
The resizing options which will be passed directly to svg2png.
verbose
Logs progress information (optional; default=true)
concurrency
Limit the amount of concurrent tasks processed at one time. (optional; default=null)
npm run build
See HISTORY.md
Copyright 2014-2016, André König ([email protected])