-
Notifications
You must be signed in to change notification settings - Fork 2
/
nuxt.config.ts
43 lines (43 loc) · 954 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
// https://nuxt.com.cn/docs/api/nuxt-config
export default defineNuxtConfig({
app: {
buildAssetsDir: "/static/",
baseURL: "/pure-admin-table-nuxt3/"
},
experimental: {
payloadExtraction: false
},
devServer: {
host: "0.0.0.0"
},
modules: [
"@nuxtjs/tailwindcss",
"@nuxtjs/color-mode",
"@element-plus/nuxt",
"nuxt-svgo-loader",
"@nuxtjs/i18n"
],
i18n: {
lazy: true,
langDir: "locales",
defaultLocale: "zh",
strategy: "no_prefix",
locales: [
{ code: "zh", file: "zh-CN.yml", name: "简体中文" },
{ code: "en", file: "en.yml", name: "English" }
],
// https://i18n.nuxtjs.org/guide/browser-language-detection
detectBrowserLanguage: false,
vueI18n: "./i18n.config.ts"
},
elementPlus: {
importStyle: "css",
themes: ["dark"]
},
css: ["@pureadmin/table/dist/style.css"],
vite: {
build: {
chunkSizeWarningLimit: 4000
}
}
});