nuxt / nuxt/icon

how to use it inside vuetify v-icon component

Open
#39 2 comments 0 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

this is not a bug just a simple question I am using vite + nuxt3 + vuetify3 my object is to use it. I am new to nuxt-icon please bare with me. I had following questions please answer it
01 nuxt-icon has tree shaking feature I mean it will only import those icons which are used in code
02 If I want to use mdi:alarm-light inside vuetify it should work as I have access to material Icon library right but it fails to display the icon.

// nuxt.config.ts
//import { defineNuxtConfig } from 'nuxt'

// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
  css: ['vuetify/lib/styles/main.sass',],
  modules: ['nuxt-icon'],
  build: {
    transpile: ['vuetify'],
  },
  vite: {
    define: {
      'process.env.DEBUG': false,
    },
  },
})```

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 nuxt.config.ts and the example, then review how nuxt-icon, Nuxt 3, Vite, and Vuetify 3 interact. Done means documenting whether tree shaking applies and whether the MDI icon can render through Vuetify's component.

Written by the indexing model from the issue text.

Assessment

Tech stack
nuxtjs, typescript, vite
Domain
frontend
Issue type
Documentation
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.