-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.ts
110 lines (98 loc) · 2.48 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
101
102
103
104
105
106
107
108
109
110
import ViteSvgLoader from 'vite-svg-loader';
export default defineNuxtConfig({
srcDir: 'src/',
devtools: { enabled: true },
ssr: false,
modules: [
'@nuxtjs/i18n',
'@nuxtjs/tailwindcss',
'@nuxtjs/color-mode',
'@nuxtjs/google-fonts',
'@pinia/nuxt',
'@vueuse/nuxt',
'nuxt-vuefire',
],
vuefire: {
auth: {
enabled: true,
},
config: {
apiKey: 'AIzaSyArKefxLB6DdSkXhewC3_EzcOplCGGhuRs',
authDomain: 'neobigben.firebaseapp.com',
projectId: 'neobigben',
storageBucket: 'neobigben.appspot.com',
messagingSenderId: '681397227646',
appId: '1:681397227646:web:fdc164818213b9f80cc82f',
},
},
i18n: {
strategy: 'prefix_except_default',
defaultLocale: 'fr',
langDir: 'i18n/',
locales: [
{
code: 'fr',
name: 'Français',
iso: 'fr-CA',
file: 'fr.json',
},
{
code: 'en',
name: 'English',
iso: 'en-CA',
file: 'en.json',
},
],
},
piniaPersistedstate: {
storage: 'localStorage',
},
googleFonts: {
download: true,
families: {
'DM+Sans': {
wght: [400, 500, 700, 900],
ital: [400],
},
},
},
colorMode: {
preference: 'system',
fallback: 'dark',
classSuffix: '',
},
postcss: {
plugins: {
'postcss-import': {},
'tailwindcss/nesting': {},
tailwindcss: {},
autoprefixer: {},
},
},
build: {
transpile: ['moment'],
},
vite: {
define: {
__VUE_PROD_DEVTOOLS__: true,
},
plugins: [
ViteSvgLoader({
svgoConfig: {
plugins: [
{ name: 'prefixIds' },
{ name: 'removeTitle' },
{ name: 'removeDesc' },
{ name: 'removeDimensions' },
{
name: 'removeAttrs',
params: {
attrs: '(fill|stroke)',
},
},
],
},
}),
],
},
});