You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working with the image_optim Ruby gem which relies on SVGo to optimize SVGs. I'm having trouble to see how we can switch from v1.3.x to v2, as the gem relies on --disable and --enable.
svgo --help states that --config allows to pass raw JSON string, but it seems to do nothing with raw JSON (svgo -i file.svg -o out.svg --config="{floatPrecision:1}" produces the same file as if no option was given).
In addition, when --config has "invalid" data, it's silently ignored.
Is it intentional ?
The text was updated successfully, but these errors were encountered:
Both disable/enable flags and config as json string support was removed in v2. I forgot to fix help command.
Fixed the help and error here. Will release tomorrow. a855b40
Hi!
I'm working with the
image_optim
Ruby gem which relies on SVGo to optimize SVGs. I'm having trouble to see how we can switch from v1.3.x to v2, as the gem relies on--disable
and--enable
.svgo --help
states that--config
allows to pass raw JSON string, but it seems to do nothing with raw JSON (svgo -i file.svg -o out.svg --config="{floatPrecision:1}"
produces the same file as if no option was given).In addition, when
--config
has "invalid" data, it's silently ignored.Is it intentional ?
The text was updated successfully, but these errors were encountered: