generated from JustScreaMy/ProjectTemplate
26 lines
589 B
TypeScript
26 lines
589 B
TypeScript
// https://nuxt.com/docs/api/configuration/nuxt-config
|
|
import vuetify, { transformAssetUrls } from 'vite-plugin-vuetify'
|
|
|
|
export default defineNuxtConfig({
|
|
compatibilityDate: '2024-11-01',
|
|
devtools: { enabled: true },
|
|
typescript: { typeCheck: true},
|
|
build: {
|
|
transpile: ['vuetify'],
|
|
},
|
|
modules: [
|
|
(_options, nuxt) => {
|
|
nuxt.hooks.hook('vite:extendConfig', (config) => {
|
|
// @ts-expect-error
|
|
config.plugins.push(vuetify({ autoImport: true }))
|
|
})
|
|
},
|
|
],
|
|
vite: {
|
|
vue: {
|
|
template: {
|
|
transformAssetUrls,
|
|
},
|
|
},
|
|
},
|
|
})
|