9 Star 120 Fork 63

玲娜贝er / ruoyi-plus-vben

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
vite.config.ts 1014 Bytes
一键复制 编辑 原始数据 按行查看 历史
玲娜贝er 提交于 2024-01-16 19:24 . feat: 合并vben最新依赖
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:8080',
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`), ''),
},
},
warmup: {
clientFiles: ['./index.html', './src/{views,components}/*'],
},
},
},
});
1
https://gitee.com/dapppp/ruoyi-plus-vben.git
git@gitee.com:dapppp/ruoyi-plus-vben.git
dapppp
ruoyi-plus-vben
ruoyi-plus-vben
main

搜索帮助