by mrinterweb · 12y ago · 0 comments
I prefer to find the SVG elements I need and base64 encode them directly into my CSS. That way you only include the assets you are using, minimize total KB and network requests. There are two tools I use to help with this:
1. https://github.com/svg/svgo (node)
2. https://gist.github.com/mrinterweb/11303706 (ruby - I wrote this one)