Svgr: Viewbox being removed

Created on 29 Jul 2018  路  3Comments  路  Source: gregberge/svgr

I was using the 1.6.0 and I've updated to the 2.1.1 to use the svgAttributes. Now all of the svg view boxes are being removed.

My webpack config:
{ loader: require.resolve('@svgr/webpack'), options: { replaceAttrValues: { '#000': 'currentColor', '#000000;': 'currentColor', }, svgAttributes: {'aria-hidden': 'true'}, }, },

Most helpful comment

@lucasjs this is now delegated to SVGO, as mentioned by @sonaye you have an example in #142.

All 3 comments

See #142

@lucasjs this is now delegated to SVGO, as mentioned by @sonaye you have an example in #142.

Thanks guys!

Was this page helpful?
0 / 5 - 0 ratings