|
@@ -1,8 +1,8 @@
|
|
|
console.log("> prebuild");
|
|
|
console.log("> prebuild create .env.production.local");
|
|
|
|
|
|
-console.log(" 构建日期为 " + revision);
|
|
|
const buildDate = require("moment")().format("YYYY-MM-DD HH:mm:SS");
|
|
|
+console.log(" 构建日期为 " + buildDate);
|
|
|
|
|
|
const revision = require("child_process")
|
|
|
.execSync("git rev-parse HEAD")
|
|
@@ -17,4 +17,9 @@ fs.writeFileSync(
|
|
|
"VUE_APP_GIT_REPO_VERSION=" + buildDate + " - " + revision
|
|
|
);
|
|
|
|
|
|
+fs.writeFileSync(
|
|
|
+ ".env.staging.local",
|
|
|
+ "VUE_APP_GIT_REPO_VERSION=" + buildDate + " - " + revision
|
|
|
+);
|
|
|
+
|
|
|
console.log();
|