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

pref:修改打包

parent 4565cdef
......@@ -10,6 +10,7 @@ yarn-error.log*
selenium-debug.log
dist.zip
基础设置系统.zip
zip/
# Editor directories and files
.idea
.vscode
......
......@@ -14,9 +14,10 @@ if (!isDev) {
new FileManagerPlugin({
events: {
onEnd: {
mkdir: ["./dist"],
delete: ["./基础设置系统.zip"],
archive: [{ source: "./dist", destination: "./基础设置系统.zip" }],
// mkdir: ["./dist"],
delete: ["./zip/"],
copy: [{ source: "./dist", destination: "./zip/dist" }],
archive: [{ source: "./zip", destination: "./zip/基础设置系统.zip" }],
},
},
})
......@@ -51,7 +52,6 @@ const BundleAnalyzerPlugin = require("webpack-bundle-analyzer")
.BundleAnalyzerPlugin;
module.exports = {
publicPath: "./",
// 打包目录--多加一层dist打zip时候把dist外壳打进去
outputDir: "dist",
devServer: {
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