Skip to content

SVGO settings file has no effect #451

@Anthony-Gaudino

Description

@Anthony-Gaudino

SVGR suggests adding a svgo.config.js file for the SVGO settings:

export default {
  multipass: true,
  plugins: [
    "removeDimensions",
    "removeXMLNS",
    "convertOneStopGradients",
    "preset-default",
    "reusePaths",
    "removeXlink",
  ],
};

But this file has no effect.

But if I create a .svgrrc.json:

{
  "svgoConfig": {
    "multipass": true,
    "plugins": [
      "removeDimensions",
      "removeXMLNS",
      "convertOneStopGradients",
      "preset-default",
      "reusePaths",
      "removeXlink"
    ]
  }
}

Then it works.

I would expect the SVGO settings in it's settings file to be applied.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions