From 6339f41cfff5b9fdf33eb2f788658247430b5091 Mon Sep 17 00:00:00 2001
From: zhangzengfei <zhangzengfei@smartai.com>
Date: 星期三, 19 十月 2022 17:19:52 +0800
Subject: [PATCH] 添加更新提醒

---
 vue.config.js |   41 +----------------------------------------
 1 files changed, 1 insertions(+), 40 deletions(-)

diff --git a/vue.config.js b/vue.config.js
index 602fd6a..6af9204 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -12,17 +12,11 @@
   build7z,
   donation,
 } = require("./src/config");
-const {
-  webpackBarName,
-  webpackBanner,
-  donationConsole,
-} = require("zx-layouts");
 
 const { version, author } = require("./package.json");
 
 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");
@@ -60,7 +54,7 @@
       plugins: [
         new Webpack.ProvidePlugin(providePlugin),
         new WebpackBar({
-          name: webpackBarName,
+          name: "vue-intergrate",
         }),
       ],
     };
@@ -131,40 +125,7 @@
           },
         },
       });
-      config
-        .plugin("banner")
-        .use(Webpack.BannerPlugin, [`${webpackBanner}${time}`])
-        .end();
-      config.module
-        .rule("images")
-        .use("image-webpack-loader")
-        .loader("image-webpack-loader")
-        .options({
-          bypassOnDebug: true,
-        })
-        .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