-
Notifications
You must be signed in to change notification settings - Fork 5
/
nuxt.config.ts
55 lines (53 loc) · 1.05 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
import { execSync } from 'child_process'
import { defineNuxtConfig } from 'nuxt/config'
import { version } from './package.json'
const hash = execSync('git rev-parse --short HEAD').toString().trim()
export default defineNuxtConfig({
ssr: false,
typescript: {
shim: false
},
modules: ['@unocss/nuxt', '@nuxt/content', '@nuxtjs/color-mode'],
unocss: {
wind: true,
icons: true,
theme: {
colors: {
pkuRed: 'rgb(112, 14, 13)',
darkFront: '#c9d1d9',
darkBack: '#0d1117'
}
}
},
colorMode: {
classSuffix: ''
},
css: ['@unocss/reset/tailwind.css', '@/assets/styles/global.css'],
build: {
transpile: [/echarts/]
},
content: {
highlight: {
theme: {
light: 'github-light',
dark: 'github-dark'
}
},
markdown: {
anchorLinks: {
depth: 0,
exclude: [1, 2, 3, 4, 5, 6]
}
}
},
runtimeConfig: {
public: {
hash,
version,
fileBase: ''
}
},
routeRules: {
'/help/**': { prerender: true }
}
})