1 Star 0 Fork 221

我要双休/wemirr-platform-ui

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
vite.config.ts 974 Bytes
一键复制 编辑 原始数据 按行查看 历史
唐亚峰 提交于 2023-05-18 14:35 . feat: 性能优化
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: {
"/api": {
target: "http://localhost:9000",
// target: "https://cloud.battcn.com/api",
changeOrigin: true,
ws: true,
rewrite: (path) => path.replace(new RegExp(`^/api`), ""),
// only https
// secure: false
},
"/upload": {
target: "https://localhost:9000/tools/files/upload",
changeOrigin: true,
ws: true,
rewrite: (path) => path.replace(new RegExp(`^/upload`), ""),
},
},
},
},
});
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/tracenight/wemirr-platform-ui.git
git@gitee.com:tracenight/wemirr-platform-ui.git
tracenight
wemirr-platform-ui
wemirr-platform-ui
vben_2.10

搜索帮助

0d507c66 1850385 C8b1a773 1850385