-
Notifications
You must be signed in to change notification settings - Fork 1
/
nuxt.config.ts
57 lines (57 loc) · 1.36 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
50
51
52
53
54
55
56
57
/*
* @Author: NMTuan
* @Email: [email protected]
* @Date: 2023-06-30 19:16:42
* @LastEditTime: 2023-07-13 14:42:57
* @LastEditors: NMTuan
* @Description:
* @FilePath: \laf_curd\nuxt.config.ts
*/
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
ssr: false,
app: {
head: {
script: [
{
src: 'https://hm.baidu.com/hm.js?c7a27417fb3ca4a77c2486d1d1d51a0c'
}
]
}
},
css: [
'@unocss/reset/normalize.css',
'@/assets/scss/common.scss',
'simplebar-vue/dist/simplebar.min.css'
],
modules: ['@unocss/nuxt', '@pinia/nuxt', '@element-plus/nuxt'],
devtools: { enabled: false },
runtimeConfig: {
public: {
requestUrl: 'https://api.laf.run',
pat: ''
}
},
experimental: {
viewTransition: true
},
imports: {
dirs: ['stores']
},
vite: {
css: {
preprocessorOptions: {
scss: {
additionalData: `@use "@/assets/scss/element/index.scss" as element;`
}
}
}
},
elementPlus: {
// icon: 'ElIcon',
importStyle: 'scss'
// themes: ['dark']
},
// spaLoadingTemplate: 'public/loading.html'
spaLoadingTemplate: false
})