Fuxi/application/nuxt.config.ts

23 lines
658 B
TypeScript
Raw Normal View History

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