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
Path size regression in v2 or later #1436
Comments
This is intentional change. See #1353 |
Thanks, that did it. I think I'll probably keep the new defaults. Here's what I did to restore old behaviour in case anyone needs it: const {params: mergePathParams} = require('svgo/plugins/mergePaths.js');
const {params: convertPathDataParams} = require('svgo/plugins/convertPathData.js');
// in plugins array
{name: 'mergePaths', params: {...mergePathParams, noSpaceAfterFlags: true}},
{name: 'convertPathData', params: {...convertPathDataParams, noSpaceAfterFlags: true}}, |
@silverwind Why do you pass params from plugins? Defaults are spread this way internally. Also please do not rely on any package internals. |
You're right, I was over-complicating this. For some reason I was assuming |
Describe the bug
While upgrading from
svgo@1.3.2
tosvgo@2.2.2
, I notice a size increase becausepath
entries are no longer compressed as well as before. Used plugins are the same as before with the only difference being the mandatoryextendDefaultPlugins
usage.To Reproduce
Example diff:
Options:
Expected behavior
SVG Size to not increase
Screenshots
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: