Zip dist on build (#61)

This commit is contained in:
Chenlei Hu
2024-06-27 15:30:29 -04:00
committed by GitHub
parent d4c8992356
commit 4355b43332
4 changed files with 127 additions and 4 deletions

9
scripts/zipdist.js Normal file
View File

@@ -0,0 +1,9 @@
import zipdir from 'zip-dir';
zipdir('./dist', { saveTo: './dist.zip' }, function (err, buffer) {
if (err) {
console.error('Error zipping "dist" directory:', err);
} else {
console.log('Successfully zipped "dist" directory.');
}
});