This repository has been archived by the owner on Nov 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.ts
84 lines (80 loc) · 2.47 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
import vuetify from "vite-plugin-vuetify"
import prismjsPlugin from "vite-plugin-prismjs"
import build_meta from './field.meta'
export default defineNuxtConfig({
typescript: {
strict: true,
tsConfig: {
compilerOptions: {
lib: [
"ES2022",
"DOM"
],
target: "ES2022",
module: "ES2022",
removeComments: true
}
}
},
app: {
cdnURL: build_meta.cdnURL,
head: {
title: build_meta.siteTitle,
link: [
{rel: 'icon', href: build_meta.siteIconUrl}
],
script: [
{src: './config/mathjax.js'},
{
async: true,
id: "MathJax-script",
type: "text/javascript",
src: 'https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js'
}
]
}
},
css: [
'vuetify/styles',
'@/styles/vuetify/snackbar.styl',
'@/styles/global/routing.styl',
'@/styles/global/util/border.styl',
'@/styles/global/util/common.styl',
'@/styles/global/util/layout.styl',
'@/styles/global/font.styl',
'@/styles/global/tag.styl',
'@/styles/markdown/character.styl',
'@/styles/markdown/common.styl',
'@/styles/markdown/dark.styl',
'@/styles/markdown/light.styl',
'@/styles/markdown/transition.styl',
'@/styles/prism/common.styl',
'@/styles/prism/dark.styl',
'@/styles/prism/light.styl'
],
vite: {
build: {
target: "ES2022"
},
ssr: {
noExternal: ['vuetify']
},
plugins: [
prismjsPlugin({
languages: [
'c',
'go', 'go-module',
'sql', 'coq', 'css', 'php', 'cpp',
'java', 'html', 'toml', 'json', 'json5', 'yaml', 'scss', 'sass', 'rust',
'shell', 'regex', 'latex', 'scala', 'cmake',
'python', 'fsharp', 'scheme', 'kotlin',
'haskell',
'javascript', 'typescript',
'idris', 'less', 'lisp', 'agda', 'racket', 'julia', 'graphql', 'http', 'lua'
]
//TODO fix style
//plugins: ['show-language']
})
]
}
})