svg-sprite icon indicating copy to clipboard operation
svg-sprite copied to clipboard

How can I remove the 'fill-opacity', 'opacity' attributes?

Open imhvost opened this issue 1 year ago • 0 comments

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.

imhvost avatar Jan 12 '24 10:01 imhvost