siemens / ix-icons

Icon library for @siemens/ix
MIT License
26 stars 5 forks source link

feat: optimize SVGs during build #30

Closed mojoaxel closed 10 months ago

mojoaxel commented 1 year ago

Summary

I want to import icons as svg files and I realized that they are not optimized. e.g

I introduced svgo as a gulp step to optimize the svg files early.

this reduces the size of the dist assets:

How did you test this change?

danielleroux commented 1 year ago

@mojoaxel yes, we plan a major refactoring with the next major release of @siemens/ix. We need some time to get your work synced wth our current working state.

nuke-ellington commented 10 months ago

@mojoaxel could you please bring your branch up to date with main so we can have a final review? Thanks!

mojoaxel commented 10 months ago

@nuke-ellington I've rebeased on the current main and removed the icon-font support in my branch.

Now it's a very minimal change, just introducing svgo to the build pipeline, which reduces the svg folder-size by ~60%.