-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
CLI option to disable plugins is no longer available #1622
Labels
Comments
It was removed in major release. So not a bug. I consider adding it back at some point but it should be able to work with presets somehow. This is still need to be figured out. You can setup all necessary plugins with svgo.config.js |
wojtekmaj
added a commit
to wojtekmaj/svgo
that referenced
this issue
Apr 8, 2024
Closes svg#1356 Closes svg#1622 In svg#1622 (comment) we read: > I consider adding it back at some point but it should be able to work with presets somehow. This is still need to be figured out. I believe that adding it at the very last possible moment, AFTER initial list is resolved, will make it work with presets, and preserve the original behavior if the options aren't used at all. I've also increased JSDoc coverage here, mainly for my own sanity when working with these arrays of plugins. Hope you don't mind that scope creep :)
wojtekmaj
added a commit
to wojtekmaj/svgo
that referenced
this issue
Apr 8, 2024
Closes svg#1356 Closes svg#1622 In svg#1622 (comment) we read: > I consider adding it back at some point but it should be able to work with presets somehow. This is still need to be figured out. I believe that adding it at the very last possible moment, AFTER initial list is resolved, will make it work with presets, and preserve the original behavior if the options aren't used at all. I've also increased JSDoc coverage here, mainly for my own sanity when working with these arrays of plugins. Hope you don't mind that scope creep :)
Closing as a duplicate of #1356 which has more context/information. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
CLI option to disable plugins is no longer available. It makes at least one (hah, probably many) developer sad.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Simple working option to remove some plugin by choice. And not removing functionality with an update.
Screenshots
svgo --disable=removeViewBox draft.svg
error: unknown option '--disable=removeViewBox'
Desktop (please complete the following information):
Additional context
So sad.
The text was updated successfully, but these errors were encountered: