svg-sprite
svg-sprite copied to clipboard
How can I remove the 'fill-opacity', 'opacity' attributes?
Hello. Not sure how to remove unnecessary attributes?
There is no documentation on the use of svgoConfig.
I try like this:
svgSprite: {
// manipulate module options
svgoConfig: {
plugins: [
{
name: 'removeAttrs',
params: {
attrs: ['fill', 'stroke', 'fill-opacity', 'opacity'],
},
},
],
}
}
But it doesn't seem to work.