gulp-svg-symbols2js
The plugin inject SVG Symbols files into JavaScript, Works with gulp-svg-symbols.
Usage
Install gulp-svg-symbols2js as a development dependency:
npm install --save-dev gulp-svg-symbols2js
Next, add it to one of the streams in your gulpfile.js:
var gulp = ;var svgSymbols = ;var svgSymbols2js = ; gulp
This will change the SVG Symbols files into JavaScript. If you want to do compression, you need to install gulp-uglify:
var gulp = ;var svgSymbols = ;var svgSymbols2js = ;var uglify = ; gulp
License
This software is released under an MIT Licence with an additional non-advertising clause.