babel-plugin-inline-react-svg
babel-plugin-inline-react-svg copied to clipboard
Is it possible to load a Sprite of svgs?
trafficstars
Hi there. Great plugin. However I was wondering if we can a load a SVG Sprite to use it's fragment identifiers and add a proper icon for it.
So far I wasn't able. Thought you could have a solution.
Thanks beforehand.
For those of you coming to this thread years later, when I tried to load a sprite, the result was an empty <svg/> wrapper. Setting the svgo option to false resolved this. My sprite is already optimized, so I haven't looked into which specific settings in svgo handle this.
Not sure if that was the same issue that @mascardoso was facing, but thought I'd post my resolution.