-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.ts
60 lines (59 loc) · 1.27 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
// https://v3.nuxtjs.org/api/configuration/nuxt.config
import Components from 'unplugin-vue-components/vite'
import { AntDesignVueResolver } from 'unplugin-vue-components/resolvers'
import { antdTheme } from './theme/antdTheme'
export default defineNuxtConfig({
modules: [
'@pinia/nuxt',
'@vueuse/nuxt',
'@nuxtjs/i18n',
],
css: ['swiper/css'],
build: {
transpile: ['swiper'],
},
i18n: {
strategy: 'prefix',
lazy: true,
langDir: 'locales',
defaultLocale: 'fr',
locales: [
{
code: 'en',
iso: 'en-US',
file: 'en-US.json',
dir: 'ltr',
},
{
code: 'fr',
iso: 'fr-FR',
file: 'fr-FR.json',
dir: 'ltr',
},
],
vueI18n: {
},
},
typescript: { strict: true },
vite: {
css: {
preprocessorOptions: {
less: {
javascriptEnabled: true,
// https://www.antdv.com/docs/vue/customize-theme/#Ant-Design-Vue-Less-variables
modifyVars: antdTheme(),
},
},
},
plugins: [
Components({
resolvers: [AntDesignVueResolver({ resolveIcons: true, importStyle: 'less' })],
}),
],
ssr: {
noExternal: ['ant-design-vue', '@ant-design/icons-vue'],
},
},
nitro: {
},
})