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
error: unknown option #1356
Comments
Hi. You need to install svgo locally like this |
@TrySound I'd say we need the CLI README.md examples to show how to disable/enable plugins too :) |
Only possible with config for now |
Came here for a similar reason: after my weekly update I had a lot of CI builds failing with The releases notes for 2.0.0 suggests that |
Came here because of this as well. Looks like there is no way to use |
Let me preface this by saying I do admire and appreciate the team's decision to, as a However... I, too, was just bitten by the removal of the I would vote that this issue be reopened, lest people inadvertently start creating duplicates. (I almost did!) |
I would like the reimplementation of I had closed the issue, since I was able to solve the error, not meaning I'm anyhow happy with the solution/workaround. Imho this bug-report/question is solved, but we should file a new feature-request. Since I do not know any duplicate/feature-request I reopen this issue for now, however it is up to the svgo-mebers how to proceed. |
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 :)
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 :)
I used an old version of SVGO like e.g. comand
svgo -i input.svg -o output.svg --pretty --indent=1 -p 3 --enable=removeHiddenElems --disable=removeUnknownsAndDefaults
and I got
error: unknown option '--enable=removeHiddenElems'
However it seems svgo is not backwards compatible.
I have read #1329 and #1337/files, and do not understand what to do.
I have tried to copy svgo.config.js from #1329 (comment) into the current folder and got
The text was updated successfully, but these errors were encountered: