-
Notifications
You must be signed in to change notification settings - Fork 2
/
nuxt.config.ts
46 lines (46 loc) · 1.32 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
/*
* @Author: cumany [email protected]
* @Date: 2023-09-06 10:58:21
* @LastEditors: cumany [email protected]
* @LastEditTime: 2023-11-03 14:08:29
* @Description:
*/
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
app: {
head: {
title: 'Pkmer-widget',
meta: [
{ name: 'description', content: 'Pkmer挂件集市.' },
{ 'http-equiv': 'cache-control', content: 'max-age=180' }
],
}
},
devtools: { enabled: true },
build: {
transpile:
process.env.NODE_ENV === 'production' ?
[
"moment",
"moment/dist/locale/zh-cn",
"tinycolor2",
"naive-ui",
'vueuc',
'@css-render/vue3-ssr',
'@juggle/resize-observer'
] : [
"moment",
"moment/dist/locale/zh-cn",
"tinycolor2",
'@juggle/resize-observer'
],
},
vite: {
optimizeDeps: {
include:
process.env.NODE_ENV === 'development'
? ['naive-ui', 'vueuc', 'date-fns-tz/formatInTimeZone']
: []
}
}
})