-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.ts
42 lines (42 loc) · 1011 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
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
css: ['~/assets/css/main.css', "@/assets/scss/global.scss"],
vite: {
css: {
preprocessorOptions: {
scss: {
additionalData: '@use "@/assets/scss/_vars.scss" as *;',
},
},
},
},
postcss: {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
},
modules: [
'@nuxtjs/color-mode',
[
'@nuxtjs/i18n',
{
/* module options */
locales: ['en', 'fr'],
defaultLocale: 'en',
vueI18n: './i18n.config.ts'
}
]
],
colorMode: {
preference: 'system', // default value of $colorMode.preference
fallback: 'light', // fallback value if not system preference found
hid: 'nuxt-color-mode-script',
globalName: '__NUXT_COLOR_MODE__',
componentName: 'ColorScheme',
classPrefix: '',
classSuffix: '',
storageKey: 'nuxt-color-mode'
},
devtools: { enabled: true },
})