Open ginomarckx opened 1 year ago
LoL, no idea what younger me was thinking:
https://github.com/axe312ger/gatsby-transformer-inline-svg/blob/master/gatsby-node.js#L65-L68
Sure, this should be configurable.
The whole plugin needs some love tough, dependency updates and stuff.
I very happily accept pull requests 🙃
@axe312ger created a PR https://github.com/axe312ger/gatsby-transformer-inline-svg/pull/106, could you take a look? thank you
@axe312ger Please checkout PR #106 that @kencanak created. This should resolve the issue any chance to get that merged in?
While before my upgrade to Node 18 (in order to upgrade to Gatsby 5), styles are no longer available from the svg content.
However, for simple images (my test image), it still seems to work correctly. For complicated images like the one below, most styling disappears.
I wanted to play around with the configuration for SVGO to find out what's wrong but there seems to be no possibility to tune the SVGO configuration.
How can I either fix this or tune the SVGO configuration?
Original SVG
After using gatsby-transformer-inline-svg: