phosphor-elm
phosphor-elm copied to clipboard
Bundle size
While the current API feels very nice, it has the disadvantage that live code inclusion only works at the icon level, and not at the style level.
So if I use - say - Phosphor.cloud
, that includes all styles in the final JS bundle.
I wonder if it would be better to have something like https://package.elm-lang.org/packages/lattyware/elm-fontawesome/latest/FontAwesome-Solid, with one module per style.
I'm up for writing a PR for this, if you want. If so, I'd be tempted to use elm-codegen
instead of the current JS.
Let me know:
- what do you think of this issue
- if you're interested in a PR, and if so
2.1. if you would be fine with a PR using
elm-codegen