Commit 4565cdef authored by “yiyousong”'s avatar “yiyousong”

pref:修改打包

parent f654d514
......@@ -3,6 +3,7 @@ node_modules
/dist
dist.zip
门户系统.zip
/zip
# local env files
.env.local
.env.*.local
......
......@@ -8,9 +8,10 @@ if (!isDev) {
new FileManagerPlugin({
events: {
onEnd: {
mkdir: ["./dist"],
delete: ["./门户系统.zip"],
archive: [{ source: "./dist", destination: "./门户系统.zip" }],
// mkdir: ["./dist"],
delete: ["./门户系统.zip", "./zip/"],
copy: [{ source: "./dist", destination: "./zip/dist" }],
archive: [{ source: "./zip", destination: "./zip/门户系统.zip" }],
},
},
})
......@@ -19,7 +20,7 @@ if (!isDev) {
module.exports = defineConfig({
transpileDependencies: true,
lintOnSave: false,
// 打包目录--多加一层dist打zip时候把dist外壳打进去
// 打包目录
outputDir: "dist",
configureWebpack: {
plugins: [...plugins],
......
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