SvgToCSS
The idea behind this module came from the work made for aditollo/grunt-svgzr and the probably-dont-base64-svg article
I've decided to separate the URI / base64 svg renderer to generate CSS / SCSS sprites from SVG files.
Usage
var svgtocss = ; svgtocss
This task would have created a css file like this
Options
The options parameter can accept these configs:
base64
: boolean, should compress image in base64? (default: false)cwd
: string, the directory to output files (default: './')style
: string, css or scss. That changes the output syntax.sprite
: string, the file to output. (default: 'svg.css')