babel-plugin-inline-react-svg icon indicating copy to clipboard operation
babel-plugin-inline-react-svg copied to clipboard

Is it possible to load a Sprite of svgs?

Open mascardoso opened this issue 8 years ago • 1 comments
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.

mascardoso avatar Oct 17 '17 14:10 mascardoso

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.

ryanfitzer avatar Sep 02 '20 00:09 ryanfitzer