From 3b7fc5fca41ff16d544e53a61dbe2b74f6d37f97 Mon Sep 17 00:00:00 2001 From: zhangzengfei <zhangzengfei@smartai.com> Date: 星期五, 19 十一月 2021 13:05:26 +0800 Subject: [PATCH] remove image-webpack-loader --- 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