This commit is contained in:
shimu
2024-06-25 15:32:02 +08:00
parent 0dd7e09348
commit ab566b1692
2 changed files with 3 additions and 3 deletions

View File

@@ -43,7 +43,7 @@
"webpack": "^5.91.0", "webpack": "^5.91.0",
"webpack-cli": "^5.1.4", "webpack-cli": "^5.1.4",
"webpack-dev-server": "^4.15.2", "webpack-dev-server": "^4.15.2",
"@zen/app-plugin": "^0.2.1" "@zen/app-plugin": "^0.2.6"
}, },
"eslintIgnore": [ "eslintIgnore": [
"public/*", "public/*",

View File

@@ -2,7 +2,7 @@ const TerserPlugin = require("terser-webpack-plugin"),
{ VueLoaderPlugin } = require("vue-loader"), { VueLoaderPlugin } = require("vue-loader"),
path = require("path"), path = require("path"),
fs = require("fs-extra"); fs = require("fs-extra");
// const ZenAppPlugin = require("@zen/app-plugin"); const ZenAppPlugin = require("@zen/app-plugin");
const MiddleWare = require("@zen/app-plugin/middleware"); const MiddleWare = require("@zen/app-plugin/middleware");
function optimization(mode) { function optimization(mode) {
@@ -148,7 +148,7 @@ module.exports = (env, argv) => {
"Access-Control-Allow-Headers": "*", "Access-Control-Allow-Headers": "*",
}, },
}; };
// webpackConfig.plugins.push(new ZenAppPlugin()); webpackConfig.plugins.push(new ZenAppPlugin());
} else { } else {
webpackConfig.output.clean = true; webpackConfig.output.clean = true;
webpackConfig.output.path = path.join(vuePath, "dist"); webpackConfig.output.path = path.join(vuePath, "dist");