svg() rework CSS preprocessor plugin
The plugin inlines SVG files into CSS as data-URIs while making it possible to style the contents using CSS as it would be possible with SVG files embedded via
var svg = require'rework-svg';var css = reworkcss_code;cssusesvg;
/* SVG file inlined *//* SVG file inlined- all paths filled red*/});}/* SVG file inlined- the fist path filled green- the second path filled red*/});}
Any property/value pair specified in the sub-stylesheet passed to
svg() modifies/adds an attribute to the selected elements.