feat: 添加预发布打包模式

This commit is contained in:
shilianmalaxiangguo
2022-04-20 23:15:04 +08:00
committed by GitHub
parent 482b41966e
commit acebbd8958
2 changed files with 15 additions and 0 deletions

14
.env.staging Normal file
View File

@@ -0,0 +1,14 @@
# 预发布也需要生产环境的行为
# https://cn.vitejs.dev/guide/env-and-mode.html#modes
NODE_ENV=production
VITE_PUBLIC_PATH = /
# 线上环境路由历史模式
VITE_ROUTER_HISTORY = "hash"
# 线上环境后端地址
VITE_PROXY_DOMAIN_REAL = ""
# 是否为打包后的文件提供传统浏览器兼容性支持 支持 true 不支持 false
VITE_LEGACY = false