-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathnuxt.config.ts
63 lines (61 loc) · 1.51 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
// https://nuxt.com/docs/api/configuration/nuxt-config
import { siteConfig } from './site.config'
export default defineNuxtConfig({
modules: [
'@unocss/nuxt',
'@vueuse/nuxt',
'@nuxt/content',
'@nuxtjs/stylelint-module',
],
app: {
rootId: 'nuxt-root',
head: {
meta: [
{ name: 'description', content: siteConfig.description },
{ name: 'author', content: siteConfig.author },
{ name: 'viewport', content: 'width=device-width, initial-scale=1.0' },
{ name: 'revisit-after', content: '7 days' },
{ name: 'msapplication-TileColor', content: '#ffffff' },
{ charset: 'UTF-8' },
{ 'http-equiv': 'X-UA-Compatible', 'content': 'IE=edge' },
],
noscript: [
{ children: 'JavaScript is required' },
],
htmlAttrs: {
lang: siteConfig.lang,
},
bodyAttrs: {
class: 'font-sans',
},
},
},
content: {
highlight: {
theme: {
// Default theme (same as single string)
default: 'vitesse-light',
// Theme used if `html.dark`
dark: 'vitesse-dark',
// Theme used if `html.sepia`
sepia: 'monokai',
},
preload: [
'c',
'cpp',
'java',
],
},
},
css: [
'@unocss/reset/tailwind.css',
'@/assets/styles/global.scss',
'@/assets/styles/theme.css',
'@/assets/styles/transition.css',
'@/assets/styles/markdown.scss',
],
stylelint: {
/* module options */
lintOnStart: false,
},
})