feat: add SVGO for SVG optimization in component creation - #830
feat: add SVGO for SVG optimization in component creation#830arashsheyda wants to merge 2 commits into
Conversation
adamdehaven
left a comment
There was a problem hiding this comment.
How does it change icons with an internal gradient?
What about the dynamic icon ids?
this I don't know, will take a look
@Justineo suggested something for this, we'd need to implement that |
He mentioned a way to refactor the entire repo -- why would the dynamic ids need to change in this pull request? |
You mentioned you don't know how the icons with gradients, animations, etc. render here, so I'm not sure this statement in the PR description is accurate yet. |
not exactly, I know that it does not break the original if we have svg |
Summary
POC
SVGO is a tool for SVG optimization. the current bundle size optimization is not that noticeable:
6.2mb but with more optimization coming (e.g. file chinking, type generating and using terser as minifier) we will be able to reduce it to2.8mb (svgo used) or3.6mb (without svgo), so I think this would be a nice edition.note: the current bundle size (without any optm.) is
6.9mb!IMPORTANT: This change updates the SVG path data to an optimized equivalent. It does not introduce any visual or behavioural differences, the icon renders identically. The update only reduces and simplifies the underlying SVG path syntax