Files
bj_power/bj_power_wms/frontend/vite.config.js
T
SunYF 2544c6141d refactor: 合并原库房客户端到主WMS服务,退役8891端口
1.  将bj_power_wms_client的前端代码、配置及网关逻辑全部迁移到bj_power_wms主项目
2.  删除原库房客户端相关的所有文件与配置
3.  更新README与部署文档,说明合并后的服务架构
4.  新增Web配置项支持自动打开浏览器开关,统一服务端口为8890
2026-09-07 15:55:30 +08:00

22 lines
616 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
// 构建产物直接写入 Go 网关的嵌入静态目录(go:embed all:web/static
export default defineConfig({
plugins: [vue()],
build: {
outDir: '../web/static',
// 不自动清空产物目录:自动清空会与系统安全删除机制冲突导致构建失败,
// 需要重新完整构建时手动执行 rm -rf ../web/static 后再 build。
emptyOutDir: false
},
server: {
port: 5173,
proxy: {
'/api': {
target: 'http://localhost:8891',
changeOrigin: true
}
}
}
})