Skip to content

Commit f75a992

Browse files
committed
smaller zips
1 parent 1e801d2 commit f75a992

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

zip.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,13 @@ for (let keyedType of ['keyed', 'non-keyed']) {
4444
}
4545
if (fs.existsSync(fd+"/target/web/stage"))
4646
zip.addLocalFolder(fd+"/target/web/stage", zipPathName+"/target/web/stage");
47-
if (fs.existsSync(fd+"/output"))
47+
if (name=="halogen" && fs.existsSync(fd+"/output")) {
48+
zip.addLocalFile(fd+"/output/bundle.js", zipPathName+"/output")
49+
} else if (name=="dojo" && fs.existsSync(fd+"/output/dist")) {
50+
zip.addLocalFolder(fd+"/output/dist", zipPathName+"/output/dist", (file) => {
51+
return !file.includes("/");
52+
});
53+
} else if (fs.existsSync(fd+"/output"))
4854
zip.addLocalFolder(fd+"/output", zipPathName+"/output");
4955
if (fs.existsSync(fd+"/build"))
5056
zip.addLocalFolder(fd+"/build", zipPathName+"/build");

0 commit comments

Comments
 (0)