last try to fix VCode issue

This commit is contained in:
Salem Yaslem 2023-05-15 16:30:59 +03:00
parent a7fff187d4
commit c7fb708af2
2 changed files with 2 additions and 14 deletions

View File

@ -1,24 +1,12 @@
// https://nuxt.com/docs/api/configuration/nuxt-config
;(global as any).CSS = { supports: () => false }
export default defineNuxtConfig({
css: [
'vuetify/lib/styles/main.sass',
'vuetify/lib/styles/main.css',
'@mdi/font/css/materialdesignicons.min.css'
],
ssr: false,
build: {
transpile: ['vuetify'],
},
// disable vite externals and ssr
vite: {
optimizeDeps: {
exclude: ['vuetify'],
},
ssr: {
noExternal: ['vuetify'],
}
},
})

View File

@ -4,7 +4,7 @@ import * as directives from 'vuetify/directives'
export default defineNuxtPlugin(nuxtApp => {
const vuetify = createVuetify({
ssr: true,
ssr: false,
components,
directives
})