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

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