Compiles a directory of svgs into a js file of base64 pngs which can be accessed from window.svgs.
###Usage:
- Put svgify into your directory of svgs, and run it with
node svgify.js
. - Include the resulting svgs.js in your page
- Insert images like:
<img data-src-svg='#{filename-without-extension}' />
- Add replaceSvgs.js to your page.