Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bundling only the icons that were used #2

Open
sethvincent opened this issue Dec 15, 2016 · 2 comments
Open

bundling only the icons that were used #2

sethvincent opened this issue Dec 15, 2016 · 2 comments

Comments

@sethvincent
Copy link
Collaborator

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.

@bcomnes
Copy link
Contributor

bcomnes commented Dec 17, 2016

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?

@ungoldman
Copy link
Member

woops sorry, meant to tag #1

@ungoldman ungoldman reopened this Dec 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants