-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.ts
49 lines (48 loc) · 1.14 KB
/
nuxt.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
import { defineNuxtConfig } from "nuxt";
// https://v3.nuxtjs.org/api/configuration/nuxt.config
export default defineNuxtConfig({
app: {
head: {
titleTemplate: "%s - Nuxt3 | Luabu",
title: "nuxt3-ssr | Luabu",
charset: "utf-8",
htmlAttrs: {
lang: "zh-CN",
},
meta: [
{ name: "keywords", content: "vue3,nuxt3,ssr,Luabu" },
{ name: "description", content: "基于vue3的nuxt框架SSR教育demo站点" },
],
link: [
{
rel: "icon",
href: "https://cn.vuejs.org/logo.svg",
},
],
},
},
css: ["~/assets/css/main.css"],
buildModules: ["nuxt-windicss"],
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/esm/formatInTimeZone"]
: [],
},
},
autoImports: {
dirs: ["apis"],
},
});