1 Star 0 Fork 225

BobNzy/wemirr-platform-ui

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
vite.config.ts 1.24 KB
一键复制 编辑 原始数据 按行查看 历史
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: {
"/dev-api": {
target: "http://localhost:9000",
// target: "https://cloud.battcn.com/api",
changeOrigin: true,
ws: true,
rewrite: (path) => path.replace(new RegExp(`^/dev-api`), ""),
},
"/api": {
target: "https://cloud.battcn.com/api",
changeOrigin: true,
ws: true,
rewrite: (path) => path.replace(new RegExp(`^/api`), ""),
},
"/upload": {
target: "https://localhost:9000/tools/files/upload",
changeOrigin: true,
ws: true,
rewrite: (path) => path.replace(new RegExp(`^/upload`), ""),
},
},
open: true, // 项目启动后,自动打开
warmup: {
clientFiles: ["./index.html", "./src/{views,components}/*"],
},
},
},
});
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/bobnzy/wemirr-platform-ui.git
git@gitee.com:bobnzy/wemirr-platform-ui.git
bobnzy
wemirr-platform-ui
wemirr-platform-ui
vben_jdk17

搜索帮助