浏览代码

更新配置

seimin 9 月之前
父节点
当前提交
2bfa20d72a
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      upload/production.js

+ 4 - 4
upload/production.js

@@ -38,13 +38,13 @@ function runTask() {
38
   const isNodeVersionLt17 = parseInt(process.version) < 17;
38
   const isNodeVersionLt17 = parseInt(process.version) < 17;
39
   const execStr = isNodeVersionLt17 ? 'npm run build' : 'npm run build:17';
39
   const execStr = isNodeVersionLt17 ? 'npm run build' : 'npm run build:17';
40
   if (shell.exec(execStr).code == 0) {
40
   if (shell.exec(execStr).code == 0) {
41
-    if (shell.exec(`find dist -name '*.js' -print0 | xargs -0 gzip -k`).code == 0) {
42
-      if (shell.exec(`find dist -name '*.css' -print0 | xargs -0 gzip -k`).code == 0) {
41
+    // if (shell.exec(`find dist -name '*.js' -print0 | xargs -0 gzip -k`).code == 0) {
42
+      // if (shell.exec(`find dist -name '*.css' -print0 | xargs -0 gzip -k`).code == 0) {
43
         console.log("-----打包成功-----");
43
         console.log("-----打包成功-----");
44
         //提交上传
44
         //提交上传
45
         connectSSh();
45
         connectSSh();
46
-      }
47
-    }
46
+      // }
47
+    // }
48
   }
48
   }
49
 }
49
 }
50
 runTask()
50
 runTask()