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'));
});
scaling
The scaling factor (optional; default=1.0)
- Retain folder hierarchy.
- Implemented UUID for temp file naming.
- Added more files to .npmignore.
- [Bugfix] See #3 for further information.
- [Feature] Implemented option for passing the scaling factor.
- README modification.
- Initial Release.
Copyright 2014, André König ([email protected])