Closed KovuTheHusky closed 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. ;-)
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.
All done and deployed
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.