-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.ts
43 lines (43 loc) · 1.13 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
import { AntDesignVueResolver } from "unplugin-vue-components/resolvers";
import Components from "unplugin-vue-components/vite";
export default defineNuxtConfig({
ssr: false,
css: ["@/assets/scss/main.scss"],
vite: {
css: {
preprocessorOptions: {
less: {
javascriptEnabled: true,
},
},
},
plugins: [
Components({
// add option {resolveIcons: true} as parameter for resolving problem with icons
resolvers: [AntDesignVueResolver({ resolveIcons: true, importStyle: false })],
}),
],
},
runtimeConfig: {
public: {
API: process.env.API,
API_SERVERS: '/servers',
},
},
modules: ["@pinia/nuxt", "@nuxtjs/i18n"],
pinia: {
autoImports: [
// automatically imports `defineStore`
"defineStore", // import { defineStore } from 'pinia'
["defineStore", "definePiniaStore"], // import { defineStore as definePiniaStore } from 'pinia'
],
},
i18n: {
locales: ["en", "fr"],
defaultLocale: "en",
dynamicRouteParams: true,
strategy: "prefix",
baseUrl: "en",
vueI18n: './locales/i18n.config.ts'
},
});