Files
dax-pay-ui/vite.config.ts
2024-10-05 22:12:52 +08:00

37 lines
877 B
TypeScript

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: {
// 运营管理端
'/server': {
target: 'http://localhost:9999',
changeOrigin: true,
ws: true,
rewrite: (path) => path.replace(new RegExp(`^/server`), ''),
// only https
// secure: false
},
},
warmup: {
clientFiles: ['./index.html', './src/{views,components}/*'],
},
},
},
})