Commit 641fe441 authored by “yiyousong”'s avatar “yiyousong”

pref:修改打包

parent e8a9a459
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
node_modules node_modules
/dist /dist
样表管理系统.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/"],
archive: [{ source: "./dist", destination: "./样表管理系统.zip" }], copy: [{ source: "./dist", destination: "./zip/dist" }],
archive: [{ source: "./zip", destination: "./zip/样表管理系统.zip" }],
}, },
}, },
}) })
...@@ -25,6 +26,6 @@ module.exports = defineConfig({ ...@@ -25,6 +26,6 @@ module.exports = defineConfig({
}, },
transpileDependencies: true, transpileDependencies: true,
// 打包输出目录 // 打包输出目录
outputDir: "dist/dist", outputDir: "dist",
publicPath: "./", publicPath: "./",
}); });
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