Skip to content

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

@imhvost

Description

@imhvost

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions