mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-01-24 02:00:25 +08:00
41 lines
1.0 KiB
TypeScript
41 lines
1.0 KiB
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',
|
|
'ant-design-vue/es/locale/en_US',
|
|
],
|
|
},
|
|
server: {
|
|
proxy: {
|
|
'/basic-api': {
|
|
target: 'http://localhost:3000',
|
|
changeOrigin: true,
|
|
ws: true,
|
|
rewrite: (path) => path.replace(new RegExp(`^/basic-api`), ''),
|
|
// only https
|
|
// secure: false
|
|
},
|
|
'/upload': {
|
|
target: 'http://localhost:3300/upload',
|
|
changeOrigin: true,
|
|
ws: true,
|
|
rewrite: (path) => path.replace(new RegExp(`^/upload`), ''),
|
|
},
|
|
},
|
|
open: true, // 项目启动后,自动打开
|
|
warmup: {
|
|
clientFiles: ['./index.html', './src/{views,components}/*'],
|
|
},
|
|
},
|
|
},
|
|
});
|