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'},
},
},
See #142
@lucasjs this is now delegated to SVGO, as mentioned by @sonaye you have an example in #142.
Thanks guys!
Most helpful comment
@lucasjs this is now delegated to SVGO, as mentioned by @sonaye you have an example in #142.