svgo-class-names
v1.0.2
Published
Because sometimes graphics software exports SVG files with garbage class names like `cls-1`, which then conflict if you put multiple SVG elements on one page.
Readme
SVGO class name rewriter plugin
Why
Because sometimes graphics software exports SVG files with garbage class names like cls-1, which then conflict if you put multiple SVG elements on one page.
And sometimes you don't want to inline the styles for whatever reason and just want to make sure those classes don't conflict.
This plugin by default renames classes to poor man's "content addressed" versions (a hash of selectors and properties) and extracts the inline styles into the style element (so the opposite of what inlineStyles does). This is configurable.
Usage
Uhh, sorry, can you just look at the tests for now? :)
