ForkAwesome / Fork-Awesome

DEPRECATED. A fork of the iconic font and CSS toolkit
https://forkaweso.me
1.32k stars 144 forks source link

SVG optimization as a build step #341

Open shinenelson opened 3 years ago

shinenelson commented 3 years ago

https://github.com/svg/svgo is a dependency for building the font. Currently, it is set up in the Makefile as an additional step to optimize all the SVGs. Sometimes, depending on the versions that users have installed, the optimizations varies and may include other SVGs that would be optimized.

If we automate the release process with GitHub Actions, we could abstract this step away from the user and let the build process take care of optimizing the SVGs in the build step. https://github.com/svg/svgo#other-ways-to-use-svgo lists https://github.com/marketplace/actions/svgo-action that can be used in GitHub Actions. We can evaluate this and see if it will fit our needs.