-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.ts
60 lines (54 loc) · 933 Bytes
/
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
export default defineNuxtConfig({
site: {
url: 'https://tools.yuanfen.net',
},
devtools: { enabled: true },
ssr: true,
css: ['~/assets/scss/common.scss'],
nitro: {
prerender: {
crawlLinks: true,
routes: ['/'],
},
},
modules: [
'@element-plus/nuxt',
'@nuxt/content',
'@nuxtjs/color-mode',
'@nuxtjs/sitemap',
'@vueuse/nuxt',
'nuxt-gtag',
'@nuxt/eslint',
],
eslint: {
checker: true,
config: {
standalone: false,
},
},
content: {
markdown: {
anchorLinks: false,
},
},
colorMode: {
classSuffix: '',
},
gtag: {
id: 'G-2NCGY88M1Y',
},
elementPlus: {
importStyle: 'scss',
themes: ['dark'],
},
vite: {
css: {
preprocessorOptions: {
scss: {
additionalData: `@use "@/assets/scss/element-plus/index.scss" as element;`,
},
},
},
plugins: [],
},
})