Closed rathishcholarajan closed 9 years ago
Hey @rathishc24,
that's a good question. In fact, I'm not too much into SVGO, but you should be able to pass any valid configuration to the SVGO process. Please see here for an example enabling / disabling particular SVGO plugins. svg-sprite will use the value of shape.transform.svgo
(when given as an object) as argument for the SVGO()
constructor, so if SVGO provides the option you need, you should be able to use it.
I'll close this issue for now, as it seems rather SVGO related, but please let me know if there's anything I can do from the svg-sprite side of things.
Cheers, Joschi
Because of these attributes on the SVG element
when I try to run svg-sprite on files like this it fails with the following error
events.js:72 throw er; // Unhandled 'error' event
Error: Skipping "%s" (%s)
I guess the SAX parser in SVGO is not recognizing this as valid syntax. Any way to turn this strict mode off from gulp-svg-sprite?
My SVG file looks like this