Comments (7)
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.
from iconify.
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.
from iconify.
@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
I am also happy to make it possible to export a json or js that reload icons you need to iconify. What do you think?
from iconify.
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.
from iconify.
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)
from iconify.
Thank you so much!
from iconify.
Awesome! Thanks!
from iconify.
Related Issues (20)
- Hey I found an Issue !! HOT 2
- iconify/vue 使用addCollection加载图标集 还会向远程服务器发起请求吗 我想就将图标集打包到项目中
- Release of icons with android library HOT 8
- @iconify/tailwindcss redundant code HOT 16
- 在uniapp中怎么使用unocss+iconify实现图标展示啊? HOT 1
- 在uniapp中显示不出来图标 HOT 1
- @iconify/tailwind can't use underline HOT 3
- Opacity on icons HOT 1
- Feat: Type definition for all icon names HOT 1
- Icon toggles visibility when scrolled in/out of viewport - observer="false" does not work? HOT 7
- `@iconify-icon/react` prop `observe` didn't work HOT 2
- finding the "real corner" of an svg HOT 2
- Prefers reduced motion with transitions HOT 6
- I can't tell why is this happening HOT 9
- Npm install broken for 1.0.0 HOT 1
- Allows adding additional `attributes` when using `getIconCSS` HOT 5
- [BUG] Class extends value undefined is not a constructor or null HOT 3
- Plugin generates a lot of repeated CSS code HOT 2
- Unexpected element: <text> HOT 2
- Iconset request: Fluentui Emoji HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from iconify.