切换编译为传统的webpack

This commit is contained in:
niyyzf 2024-08-03 13:15:41 +08:00
parent 6d41883288
commit c84f3f6f0e
1 changed files with 68 additions and 67 deletions

View File

@ -1,11 +1,12 @@
// https://nuxt.com/docs/api/configuration/nuxt-config // https://nuxt.com/docs/api/configuration/nuxt-config
import AutoImport from 'unplugin-auto-import/vite' import AutoImport from 'unplugin-auto-import/vite'
import Components from 'unplugin-vue-components/vite' import Components from 'unplugin-vue-components/vite'
import { NaiveUiResolver } from 'unplugin-vue-components/resolvers' import {NaiveUiResolver} from 'unplugin-vue-components/resolvers'
export default defineNuxtConfig({ export default defineNuxtConfig({
devtools: {enabled: true}, devtools: {enabled: true},
builder: "webpack",
ssr: false, ssr: false,
modules: [ modules: [
'@nuxtjs/color-mode', '@nuxtjs/color-mode',