From 3a4018987bd959ea50c8969e1fda056ec2845ede Mon Sep 17 00:00:00 2001
From: zhangzengfei <zhangzengfei@smartai.com>
Date: 星期四, 18 十一月 2021 18:51:12 +0800
Subject: [PATCH] 修复npm部署的问题

---
 vue.config.js |   22 ----------------------
 package.json  |    1 -
 2 files changed, 0 insertions(+), 23 deletions(-)

diff --git a/package.json b/package.json
index e6198d6..4433455 100644
--- a/package.json
+++ b/package.json
@@ -66,7 +66,6 @@
     "eslint": "^7.32.0",
     "eslint-plugin-prettier": "^3.4.1",
     "eslint-plugin-vue": "^7.16.0",
-    "filemanager-webpack-plugin": "^6.1.6",
     "image-webpack-loader": "^7.0.1",
     "lint-staged": "^11.1.2",
     "prettier": "^2.3.2",
diff --git a/vue.config.js b/vue.config.js
index 602fd6a..4c3f2a0 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -22,7 +22,6 @@
 
 const Webpack = require("webpack");
 const WebpackBar = require("webpackbar");
-const FileManagerPlugin = require("filemanager-webpack-plugin");
 const dayjs = require("dayjs");
 const date = dayjs().format("YYYY_M_D");
 const time = dayjs().format("YYYY-M-D HH:mm:ss");
@@ -144,27 +143,6 @@
         })
         .end();
     });
-
-    if (build7z) {
-      config.when(process.env.NODE_ENV === "production", (config) => {
-        config
-          .plugin("fileManager")
-          .use(FileManagerPlugin, [
-            {
-              onEnd: {
-                delete: [`./${outputDir}/video`, `./${outputDir}/data`],
-                archive: [
-                  {
-                    source: `./${outputDir}`,
-                    destination: `./${outputDir}/${abbreviation}_${outputDir}_${date}.7z`,
-                  },
-                ],
-              },
-            },
-          ])
-          .end();
-      });
-    }
   },
   runtimeCompiler: true,
   productionSourceMap: false,

--
Gitblit v1.8.0