GithubHelp home page GithubHelp logo

Using iconify offline about iconify HOT 7 CLOSED

iconify avatar iconify commented on June 25, 2024
Using iconify offline

from iconify.

Comments (7)

cyberalien avatar cyberalien commented on June 25, 2024 2

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.

cyberalien avatar cyberalien commented on June 25, 2024 1

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.

antfu avatar antfu commented on June 25, 2024 1

@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.

cyberalien avatar cyberalien commented on June 25, 2024 1

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.

aminya avatar aminya commented on June 25, 2024

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.

aminya avatar aminya commented on June 25, 2024

Thank you so much!

from iconify.

aminya avatar aminya commented on June 25, 2024

Awesome! Thanks!

from iconify.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.