-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.ts
63 lines (62 loc) · 1.24 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({
nitro: {
"preset": "cloudflare"
},
css: ['~/assets/css/main.css'],
modules: [
"@bg-dev/nuxt-naiveui",
'@nuxt/content',
'nuxt-icon',
'@nuxt/image',
'@nuxtjs/color-mode',
'@nuxtjs/tailwindcss',
'nuxt-svgo'
],
content: {
documentDriven: true
},
naiveui: {
iconSize: 18,
colorModePreference: 'system',
themeConfig: {
shared: {
common: {
primaryColor: '#F25739',
}
},
},
},
tailwindcss: {
exposeConfig: true
},
svgo: {
autoImportPath: './assets/img/'
},
image: {
provider: 'cloudimage',
/**
* You can register an account on cloudimage.io
*
* Here is an example
* source: https://hufasi.com/cover/xifangquezhi.jpg
* destination: https://cthkthtwca.cloudimg.io/hufasi.com/cover/xifangquezhi.jpg?width=128
*/
cloudimage: {
baseURL: "hufasi.com",
cdnURL: "https://cthkthtwca.cloudimg.io"
}
},
postcss: {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
},
colorMode: {
preference: 'system',
fallback: 'dark',
classSuffix: ''
},
devtools: { enabled: true }
})