chore(icon): add @nuxt/icon support

This commit is contained in:
Timothy Yin 2024-11-26 17:42:34 +08:00
parent 817611c731
commit 5e0e6bd1a6
5 changed files with 199 additions and 432 deletions

View File

@ -78,4 +78,9 @@ export default defineNuxtConfig({
},
},
},
icon: {
clientBundle: {
scan: true
}
},
})

View File

@ -10,6 +10,7 @@
"postinstall": "nuxt prepare"
},
"dependencies": {
"@iconify-json/vscode-icons": "^1.2.2",
"@nuxt/content": "^2.13.4",
"@nuxtjs/color-mode": "^3.5.2",
"@nuxtjs/mdc": "^0.9.2",

View File

@ -31,6 +31,8 @@
"test:types": "vue-tsc --noEmit && cd playground && vue-tsc --noEmit"
},
"dependencies": {
"@iconify-json/tabler": "^1.2.8",
"@nuxt/icon": "^1.8.2",
"@nuxt/kit": "^3.14.159",
"@nuxtjs/tailwindcss": "^6.12.2",
"@tailwindcss/aspect-ratio": "^0.4.2",

621
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@ -6,6 +6,7 @@ import {
addPlugin,
addComponentsDir,
addImportsDir,
installModule,
} from '@nuxt/kit'
import { name, version } from '../package.json'
import { installTailwind } from './tailwind'
@ -65,6 +66,7 @@ export default defineNuxtModule<ModuleOptions>({
createTemplates(_nuxt)
// Modules
await installModule('@nuxt/icon')
installTailwind(_options, _nuxt, resolve)
// Plugins