entypo icon indicating copy to clipboard operation
entypo copied to clipboard

bundling only the icons that were used

Open sethvincent opened this issue 9 years ago • 2 comments

Would it be good to have something like entypoify to reduce the SVGs in the bundle to only those that were used?

I'm not sure yet how hard that would be.

It could also optionally take the place of brfs.

Also: this looks great I'm probly gonna use it. Do you know of other icon modules like this? So far I've only seen dat-icons.

sethvincent avatar Dec 15 '16 07:12 sethvincent

A browserify transform that could statically detect which icons get possibly used and generate only that sprite sheet would be super neat. Slightly dumber, but we could also expose some kind of build API that allows people to customize a build. The transform would be way cooler though. So far I'm only using this in electron so my motivation to do that right now is low, but totally open to it. I'll add you on the module.

The idea came from the dat-icon repo pretty much 100%, we should probably give them a shoutout. Thanks dat-data! Maybe @kriesse knows the origin of the pattern though?

bcomnes avatar Dec 17 '16 19:12 bcomnes

woops sorry, meant to tag #1

ungoldman avatar Dec 18 '16 02:12 ungoldman