nuxt / nuxt/icon

Example with Custom Icons Working with ssr:false

Open
#323 5 comments 1 reaction 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

I'm trying to use custom iconify collections, as mentioned in #311 and I can get it to work under normal conditions.

But when generating with ssr:false the icons don't appear.

I was hoping someone might have an example of how to get this working?

Similar to #311, I can't do the svg custom collection provided as there are an enormous number of svg files.

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

Start with the Nuxt component and reproduce the reported behavior using a custom Iconify collection with ssr:false, then compare it with normal rendering. Done means the custom icons appear when generating with ssr:false, without requiring an enormous set of individual SVG files.

Written by the indexing model from the issue text.

Assessment

Tech stack
nuxtjs, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.