gulp-svg-to-jsx
v0.0.7
Published
Gulp wrapper for svg-to-jsx
Downloads
35
Readme
gulp-svg-to-jsx
This is a gulp wrapper for svg-to-jsx package.
Please see svg-to-jsx
documentation for options and usage.
Installation
gulp-svg-to-jsx
is a node module. To install you have to have Node.js and NPM installed on your machine.
npm install gulp-svg-to-jsx
Usage
The basics of using gulp
are covered here. To use gulp-svg-to-jsx
simply pipe the SVG file stream in:
var gulp = require('gulp');
var svgToJsx = require('gulp-svg-to-jsx');
// See docs for svg-to-jsx for info on options
// You can also skip passing options to use defaults
var options = {};
gulp.task('svg', function() {
return gulp.src('svg/*.svg')
.pipe(svgToJsx(options))
.pipe(gulp.dest('build/jsx'));
});