TheArtificial / pokemon-icons

Fan art inspired by Pokémon
https://theartificial.github.io/pokemon-icons/
109 stars 12 forks source link

Use svgo for optimizing SVG files #18

Closed KovuTheHusky closed 4 years ago

KovuTheHusky commented 4 years ago

Using svgo removes redundant or useless information from SVG files.

I ran find _icons/SVG -type f -name "*.svg" -exec svgo --multipass {} \; from the project root and found that the directory size went from 10.2MB to 7.4MB which is a decrease of ~27%.

Using svgo could be automated by being integrated into your gulp tasks. Would save a good deal of bandwidth when serving the files on the web.

gerwitz commented 4 years ago

Good idea … when the icon set was manually managed (a few generations ago) we used svgo but it didn't get scripted in when we automated things.

I'll get to it eventually, but pull requests are greatly appreciated. ;-)

gerwitz commented 4 years ago

Oh, and if you have gulp skills, I'd love thoughts on fixing the publish task. It's currently running subtasks asynchronousy and thus failing on Travis CI.

gerwitz commented 4 years ago

All done and deployed