|
@@ -4,9 +4,9 @@ import { resolve } from "path";
|
|
|
import ElementPlus from "unplugin-element-plus/vite";
|
|
|
|
|
|
let app = "fire";
|
|
|
-if (process.argv.length > 3) {
|
|
|
- app = process.argv[process.argv.length - 1].trim();
|
|
|
-}
|
|
|
+// if (process.argv.length > 3) {
|
|
|
+// app = process.argv[process.argv.length - 1].trim();
|
|
|
+// }
|
|
|
|
|
|
// const dev = true;
|
|
|
// const devUrl = "https://xj-mix3d.4dkankan.com"
|
|
@@ -15,7 +15,7 @@ if (process.argv.length > 3) {
|
|
|
export default ({ mode }: any) =>
|
|
|
defineConfig({
|
|
|
define: {
|
|
|
- VITE_APP_APP: JSON.stringify(app),
|
|
|
+ VITE_APP_APP: mode === "development" ? JSON.stringify(app) : String(mode),
|
|
|
},
|
|
|
base: "./",
|
|
|
build: {
|