cssnano icon indicating copy to clipboard operation
cssnano copied to clipboard

[Feature Request]: Use `svgo.config.js` for postcss-svgo

Open kytta opened this issue 11 months ago • 1 comments

What should be improved?

SVGO supports external configuration via svgo.config.js: https://github.com/svg/svgo#configuration. Now, even if I have this file, postcss-svgo will not respect it and use the default config.

Describe the solution you would like

I'd like the plugin to take the SVGO config into consideration, so that I don't have to list the plugins twice (in the PostCSS config and the SVGO config)

Possible alternatives

No response

Additional context

SVGO exports its own config loading function: https://github.com/svg/svgo/blob/73f7002ab614554446e26acf1552c2505448b96f/lib/svgo-node.js#L37-L67

Are you willing to work on this?

  • [x] Yes, I would like to help

kytta avatar Jul 15 '23 09:07 kytta