Commit 98612382 authored by “yiyousong”'s avatar “yiyousong”

pref:修改打包

parent 4565cdef
...@@ -10,6 +10,7 @@ yarn-error.log* ...@@ -10,6 +10,7 @@ yarn-error.log*
selenium-debug.log selenium-debug.log
dist.zip dist.zip
基础设置系统.zip 基础设置系统.zip
zip/
# Editor directories and files # Editor directories and files
.idea .idea
.vscode .vscode
......
...@@ -14,9 +14,10 @@ if (!isDev) { ...@@ -14,9 +14,10 @@ if (!isDev) {
new FileManagerPlugin({ new FileManagerPlugin({
events: { events: {
onEnd: { onEnd: {
mkdir: ["./dist"], // mkdir: ["./dist"],
delete: ["./基础设置系统.zip"], delete: ["./zip/"],
archive: [{ source: "./dist", destination: "./基础设置系统.zip" }], copy: [{ source: "./dist", destination: "./zip/dist" }],
archive: [{ source: "./zip", destination: "./zip/基础设置系统.zip" }],
}, },
}, },
}) })
...@@ -51,7 +52,6 @@ const BundleAnalyzerPlugin = require("webpack-bundle-analyzer") ...@@ -51,7 +52,6 @@ const BundleAnalyzerPlugin = require("webpack-bundle-analyzer")
.BundleAnalyzerPlugin; .BundleAnalyzerPlugin;
module.exports = { module.exports = {
publicPath: "./", publicPath: "./",
// 打包目录--多加一层dist打zip时候把dist外壳打进去
outputDir: "dist", outputDir: "dist",
devServer: { devServer: {
disableHostCheck: true, disableHostCheck: true,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment