nuxt / nuxt/icon

Reduce Iconify Package Size in NuxtUI – Import Only Needed Icons

Open
#341 5 comments 6 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
1.2k
Forks
96
Avg merge
8h 12m
Merged PRs (30d)
2

Description

Hello,

I'm using NuxtUI with Iconify and four collections: Material Symbols, Heroicons, let's icon and Simple Icons.

Image

However, after installing these collections and building my project, the generated packages are several megabytes in size. These packages take up about 80% of my project size, which heavily impacts performance.

Image

Image

total size of my project :

Image

I’d like to:

Import only the specific icons I use from these collections instead of including everything.
Know if there’s a built-in way to achieve this in Iconify/nuxt-icon or any recommended approach.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files or tests are named. Start by reproducing a Nuxt project build with the four reported icon collections and inspect which generated bundles contain them. Done means unused icons are excluded from the package output, with the supported configuration or limitation documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
nuxtjs, typescript
Domain
frontend, performance
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.