-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.ts
100 lines (99 loc) · 2.13 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
import { seoData } from './data/meta'
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
app: {
head: {
charset: 'utf-8',
viewport: 'width=device-width, initial-scale=1',
title: seoData.title,
},
pageTransition: { name: 'page', mode: 'out-in' },
layoutTransition: { name: 'layout', mode: 'out-in' },
},
sitemap: {
strictNuxtContentPaths: true,
},
site: {
url: seoData.mySite,
identity: {
type: 'Person',
},
},
nitro: {
prerender: {
crawlLinks: true,
routes: ['/', '/rss.xml'],
},
},
content: {
highlight: {
langs: ['bat', 'c', 'cpp', 'css', 'diff', 'html', 'ini', 'java', 'js', 'json', 'log', 'makefile', 'matlab', 'md', 'mdc', 'powershell', 'python', 'sh', 'ssh-config', 'toml', 'ts', 'tsx', 'vb', 'vue', 'xml', 'yaml', 'jsx', 'scss', 'prisma', 'nginx', 'dockerfile', 'http'],
theme: {
default: 'github-light',
dark: 'github-dark',
},
},
markdown: {
toc: {
depth: 2,
},
},
},
image: {
dir: 'public',
quality: 85,
formats: ['webp', 'gif', 'jpeg', 'png', 'avif'],
},
devServer: {
host: '127.0.0.1',
port: 2408,
},
experimental: {
scanPageMeta: true,
},
typescript: {
strict: true,
},
vite: {
css: {
preprocessorOptions: {
scss: {
api: 'modern-compiler',
},
},
},
},
css: ['~/assets/css/index.scss'],
tailwindcss: {
exposeConfig: true,
viewer: false,
},
googleFonts: {
families: {
'Noto+Serif': [500, 700],
'Noto+Serif+SC': [500, 700],
'Noto+Serif+JP': [500, 700],
},
display: 'swap',
preload: true,
download: true,
},
colorMode: {
classSuffix: '',
},
modules: [
'@nuxtjs/tailwindcss',
'@nuxt/icon',
'@nuxtjs/google-fonts',
'@nuxtjs/color-mode',
'@nuxt/image',
'@nuxt/content',
'@nuxtjs/seo',
'@vueuse/nuxt',
'@pinia/nuxt',
'pinia-plugin-persistedstate/nuxt',
],
plugins: ['~/plugins/directives.ts'],
devtools: { enabled: true },
compatibilityDate: '2024-10-05',
})