forked from xxm1995/dax-pay-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvite.config.ts
45 lines (44 loc) · 1.12 KB
/
vite.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
import { defineApplicationConfig } from '@vben/vite-config'
export default defineApplicationConfig({
overrides: {
optimizeDeps: {
include: [
'echarts/core',
'echarts/charts',
'echarts/components',
'echarts/renderers',
'qrcode',
'@iconify/iconify',
'ant-design-vue/es/locale/zh_CN',
],
},
server: {
open: false, // 项目启动后,自动打开
host: true,
port: 3300,
proxy: {
// 运营管理端
'/admin': {
target: 'http://localhost:9999',
changeOrigin: true,
ws: true,
rewrite: (path) => path.replace(new RegExp(`^/admin`), ''),
// only https
// secure: false
},
// 商户端
'/merchant': {
target: 'http://localhost:8888',
changeOrigin: true,
ws: true,
rewrite: (path) => path.replace(new RegExp(`^/merchant`), ''),
// only https
// secure: false
},
},
warmup: {
clientFiles: ['./index.html', './src/{views,components}/*'],
},
},
},
})