新增预发布版本

This commit is contained in:
gyq
2024-10-24 11:11:48 +08:00
parent db8c41fd16
commit 06a0d1d0fc
5 changed files with 15853 additions and 17 deletions

View File

@@ -7,6 +7,8 @@ import path from "path";
// https://vitejs.dev/config/
export default defineConfig(({ command, mode }) => {
const env = loadEnv(mode, process.cwd(), "");
// console.log(env.ENV);
return {
server: {
proxy: {
@@ -40,7 +42,7 @@ export default defineConfig(({ command, mode }) => {
},
},
esbuild: {
drop: ["console"],
drop: env.ENV == "production" ? ["console"] : [],
},
};
});