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

pref:修改打包

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