Sketch Plugin - SVGO Compressor (github.com)
over 7 years ago from Mathieu C, Designer
over 7 years ago from Mathieu C, Designer
Can anybody figure out how to set parameters to 'true' in the config file?
Which SVGO plugin are you trying to use?
The 'removeDesc' plugin has an example of how to set one of its parameters in the default svgo.json
file…
I can't set "floatPrecision" to 2, on cleanupNumericValues. Export seems ignore these parameters, or maybe I do something wrong... Is it possible to have your personal config if you tweaked it? Thank you!
Just make sure your JSON file looks like this around that particular plugin:
… { "name": "cleanupNumericValues", "params": { "floatPrecision": 2 } }, …
Tested here and works as expected : )
Designer News
Where the design community meets.
Designer News is a large, global community of people working or interested in design and technology.
Have feedback?
Login to Comment
You'll need to log in before you can leave a comment.
LoginRegister Today
New accounts can leave comments immediately, and gain full permissions after one week.
Register now