Svg-folder-to-elm-module: import SVG icons into your elm codebase

I decided to publish a little tool I built using elmx. I hope it will be useful for you.

Here’s a demo:
asciicast

14 Likes

Nice project! It’s worth noting that this also gives you subsetting for free if you minify your Elm code in the normal way—I do something similar with elm-fontawesome and have found it works very well.

Thanks!

I reckon by ‘normal mode’ you mean using --optimize to do dead code elimination like explained in https://elm-lang.org/news/small-assets-without-the-headache#dead-code-elimination ?

Yeah, the Elm guide has more specific instructions, although it suggests uglifyjs, which is not ideal (it doesn’t support ES6), there are threads on here about alternatives.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.