-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.ts
67 lines (61 loc) · 1.34 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
58
59
60
61
62
63
64
65
66
67
// https://v3.nuxtjs.org/docs/directory-structure/nuxt.config
export default defineNuxtConfig({
app: {
// head
head: {
title: '计算机协会管理系统',
meta: [
{ name: 'viewport', content: 'width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no' },
{
hid: 'description',
name: 'description',
content: '计算机协会管理系统。支持时间投票系统,为会议活动时间的确定提供有效的工具支持;支持活动报名。',
},
],
link: [{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }],
}
},
// css
css: ['~/assets/scss/index.scss'],
typescript: {
strict: true,
shim: false,
},
// build modules
modules: [
'@vueuse/nuxt',
'@unocss/nuxt',
'@pinia/nuxt',
'@element-plus/nuxt',
'@nuxtjs/color-mode'
],
// vueuse
vueuse: {
ssrHandlers: true,
},
// colorMode
colorMode: {
classSuffix: '',
},
unocss: {
uno: true,
attributify: true,
icons: {
scale: 1.2,
},
},
vite: {
css: {
preprocessorOptions: {
scss: {
// additionalData: `@use "@/assets/scss/element/index.scss" as element;`,
},
},
},
},
elementPlus: {
icon: 'ElIcon',
importStyle: 'scss',
themes: ['dark'],
},
})