antfu / purge-icons

🎐 Bundles icons on demand
https://www.npmjs.com/package/purge-icons
MIT License
228 stars 18 forks source link

feat: support loading from `@iconify-json/*` #34

Closed jiangmaniu closed 2 years ago

jiangmaniu commented 2 years ago

As you said, the complete @iconify-json dependency package is up to 130MB, but most of the time we don't use all iconSet, maybe only one or two of them, but we still need to do this Relying on the huge @iconify-json, we don't actually use other icons, which leads to a lot of useless icon set files in our node_modules dependency environment, which will lead to larger size.

Thanks to the good design for iconfig, we can download the Individual icon sets we need individually, so I think we can try to import the package Individual icon sets (@iconify- json/[the-collection-you-want]), which makes it easier for users to install the desired chart collection.