easy-svg
A tiny plugin to help with the svg + use workflow
Install
npm install easy-svg
Usage
There's a through stream bundled, use with vinyl-fs
var vfs = ;var easysvg = ; vfs ;
Or with gulp
var gulp = ;var easysvg = ; gulp;
Or directly from the file system
var fs = ;var easysvg = ; var builder = easysvg; builder;builder; builder;
Options.
By default, 3 files will be produced
icons.svg
- the compiled svg containing all of your SVG filessvgforeveyrone.min.js
- For IE 9 supportpreview.html
- For a preview of what was create
To disable any of theme:
var vfs = ;var easysvg = ; vfs ;
To change any file names:
var vfs = ;var easysvg = ; vfs ;
Contributing.
This module is authored in ES6, so you should only edit files withing the src
directory and compile
using npm run es6
. Alternatively, to compile on every file save, run npm run es6-watch
.