gulp-flex-svg
v1.1.2
Published
flex-svg plugin for gulp
Downloads
6
Maintainers
Readme
gulp-flex-svg
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<svg xmlns="http://www.w3.org/2000/svg" width="50px" height="50px">
</svg>
↓
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<svg xmlns="http://www.w3.org/2000/svg">
</svg>
Installation
npm install --save-dev gulp-flex-svg
API
const flexSvg = require('gulp-flex-svg');
flexSvg([options])
options: Object
(directly passed to the xml2js.Parser options and the xml2js.Builder options)
Return: Object
(stream.Transform)
const gulp = require('gulp');
const flexSvg = require('flex-svg');
gulp.task('default', () => {
return gulp.src('src/**/*.svg')
.pipe(flexSvg())
.pipe(gulp.dest('dist'));
});
License
Copyright (c) 2014 - 2015 Shinnosuke Watanabe
Licensed under the MIT License.