-
Notifications
You must be signed in to change notification settings - Fork 16
/
nuxt.config.ts
53 lines (46 loc) · 1023 Bytes
/
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
// https://v3.nuxtjs.org/api/configuration/nuxt.config
import eslintPlugin from "vite-plugin-eslint";
export default defineNuxtConfig({
ssr: false,
runtimeConfig: {
public: {
apiBase: process.env.API_BASE_URL
}
},
modules: [
"@nuxtjs/tailwindcss",
"@nuxtjs/color-mode"
],
colorMode: {
preference: "dark", // default value of $colorMode.preference
fallback: "dark", // fallback value if not system preference found
hid: "nuxt-color-mode-script",
globalName: "__NUXT_COLOR_MODE__",
componentName: "ColorScheme",
classPrefix: "",
classSuffix: "",
storageKey: "nuxt-color-mode",
dataValue: "theme"
},
vite: {
server: {
fs: {
// Allow serving files from one level up to the project root
allow: [".."]
}
},
plugins: [
eslintPlugin()
]
},
devtools: {
enabled: true
},
postcss: {
plugins: {
"tailwindcss/nesting": {},
tailwindcss: {},
autoprefixer: {}
}
}
});