Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 task done
kytta opened this issue Jul 15, 2023 · 1 comment
Open
1 task done

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

kytta opened this issue Jul 15, 2023 · 1 comment

Comments

@kytta
Copy link

kytta commented Jul 15, 2023

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?

  • Yes, I would like to help
@alexander-akait
Copy link
Member

Hello, PR welcome

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants