Skip to content

Commit

Permalink
chore: include vuetify used icons in client bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
kingyue737 committed Sep 30, 2024
1 parent 105446d commit 19953e4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { aliases } from 'vuetify/iconsets/mdi'

// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
devtools: { enabled: true },
Expand Down Expand Up @@ -28,6 +30,10 @@ export default defineNuxtConfig({
},
icon: {
clientBundle: {
icons: Object.values(aliases).map((v) =>
(v as string).replace(/^mdi-/, 'mdi:'),
),
scan: true,
// scan all components in the project and include icons
// scan: true,
},
Expand Down

0 comments on commit 19953e4

Please sign in to comment.