rsbuild-plugin-image-compress
rsbuild-plugin-image-compress copied to clipboard
svg compress error when the svg size is big and use the default config
i use the default plugin config like plugins: [pluginImageCompress(['jpeg', 'png', 'ico', 'svg', 'avif'])] when the svg size is big compress will be case error such as follow:
Can you provide a minimal reproduction? thank you!
https://github.com/TaueFenCheng/demo-compress.git run pnpm build can show the error infos
when the svg size
Adjusting floatPrecision remediates the issue @TaueFenCheng . The lower the better chance a large svg will compress. 2 works for your case.
Further reading here.
Thanks i have already solve this problem ~