-
-
Notifications
You must be signed in to change notification settings - Fork 128
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
Using iconify offline #31
Comments
That's a really good question and a very interesting use case. Problem with providing all icons is, you'll need to bundle them all with your software. Right now that's 105Mb of JSON files. You can probably reduce that by removing icon set your don't need for sure. I think solution would be to expose icon loading function in SVG framework, replace it with a custom callback to load icons one by one. I'll think about that, will test various possible solutions. Your use case is something I didn't even consider when designing Iconify. It is a really good use case, I think supporting Electron apps would be very useful. |
105Mb is a lot 😄 We would only need those that we already support. these I gave you a dev environment here if you like to experiment with this: #30 (comment) |
@aminya I am working on an explorer for Iconify which you can pick icons them pack them into icon font.https://github.com/antfu/icones |
See #30 (comment) for a simple icon bundling script. It can be used to make custom icon bundles with full icon sets, so developer can use Iconify offline. I'll add it to documentation. |
Thank you so much! |
Added bundle script to documentation: https://docs.iconify.design/sources/bundles/examples/svg-framework-full.html Script in documentation is more advanced than what I've posted above. It includes all common use cases and is easy to configure, so all you need to do is paste it in file, install dependencies, configure and run it. |
Awesome! Thanks! |
I want to use iconify offline in a Nodejs app. However, I do not want to bundle only a few limited icons like how it is shown in https://iconify.design/docs/icon-bundles/.
I want
iconify
to work like how it works when it is online. Is there a way to do that? Can I specify a path or install a package, so iconify imports the icons on demand from the disk instead of downloading them?The app is a tool-bar for Atom and provides a service for others to add buttons. Previously, we bundled some icon sets with the app, and others could choose the icon they wanted to show by just choosing the name.
The text was updated successfully, but these errors were encountered: