phosphor-elm icon indicating copy to clipboard operation
phosphor-elm copied to clipboard

Bundle size

Open miniBill opened this issue 6 months ago • 5 comments

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:

  1. what do you think of this issue
  2. if you're interested in a PR, and if so 2.1. if you would be fine with a PR using elm-codegen

miniBill avatar Aug 21 '24 13:08 miniBill