From c7fb708af2456cf36706b437828b764f62537572 Mon Sep 17 00:00:00 2001 From: Salem Yaslem Date: Mon, 15 May 2023 16:30:59 +0300 Subject: [PATCH] last try to fix VCode issue --- nuxt.config.ts | 14 +------------- plugins/vuetify.ts | 2 +- 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/nuxt.config.ts b/nuxt.config.ts index 7a0b63f..d6fa23d 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -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'], - } - }, }) diff --git a/plugins/vuetify.ts b/plugins/vuetify.ts index 62e9f3d..33811d3 100644 --- a/plugins/vuetify.ts +++ b/plugins/vuetify.ts @@ -4,7 +4,7 @@ import * as directives from 'vuetify/directives' export default defineNuxtPlugin(nuxtApp => { const vuetify = createVuetify({ - ssr: true, + ssr: false, components, directives })