-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.ts
63 lines (63 loc) · 1.37 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
export default defineNuxtConfig({
debug: false,
devtools: { enabled: false },
modules: [
'@vueuse/nuxt',
'@unocss/nuxt',
// '@nuxt/image',
// '@nuxtjs/color-mode',
'@pinia/nuxt',
// 'shadcn-nuxt',
// 'unplugin-info/nuxt',
// 'unplugin-analytics/nuxt',
'@nuxt/eslint' // https://eslint.nuxt.com/packages/module
],
nitro: {
prerender: {
autoSubfolderIndex: false
}
},
components: [
{
path: '~/components',
pathPrefix: false
}
],
alias: {},
app: {
head: {
title: '西木Nuxt模板项目',
viewport: 'width=device-width,initial-scale=1,viewport-fit=cover',
htmlAttrs: {
lang: 'zh-CN'
},
link: [{ rel: 'icon', href: '/favicon.png' }],
meta: [],
script: []
}
},
// image: {},
unocss: {
preflight: true
},
// analytics: {
// umami: {
// src: `umami.onekuma.cn`,
// id: `6d532af3-e9bc-43a1-998b-8d3cae5fcbb6`
// },
// clarity: {
// id: 'lbvx2f1py2'
// }
// },
eslint: {
config: {
stylistic: {
indent: 2, // 2空格缩进
semi: false, // 语句末尾需要分号
commaDangle: 'never', // 不允许逗号结尾
braceStyle: '1tbs' // 1tbs大括号风格, https://eslint.style/rules/js/brace-style
}
}
}
})