Fuxi/application/nuxt.config.ts
2023-12-10 22:57:46 +08:00

23 lines
658 B
TypeScript

// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
devtools: { enabled: true },
modules: ["@unocss/nuxt", "@pinia/nuxt", "@nuxtjs/supabase", "@nuxtjs/mdc"],
app: {
head: {
title: "Fuxi Programming",
titleTemplate: "%s | Fuxi",
},
},
build: {
transpile:
process.env.NODE_ENV === "production"
? ["naive-ui", "vueuc", "@css-render/vue3-ssr", "@juggle/resize-observer"]
: ["@juggle/resize-observer"],
},
vite: {
optimizeDeps: {
include: process.env.NODE_ENV === "development" ? ["naive-ui", "vueuc", "date-fns-tz/formatInTimeZone"] : [],
},
},
});