feat(scripts/build): mangle names, and compress

This commit is contained in:
PalmDevs 2025-05-21 07:26:14 +07:00
parent bea79efb4f
commit 4606a9edc2
No known key found for this signature in database
GPG key ID: 6FAE8F8677ACA8BA

View file

@ -80,6 +80,12 @@ export default async function build(dev = false, log = true) {
})
await bundle.write({
minify: {
deadCodeElimination: true,
removeWhitespace: false,
compress: true,
mangle: true,
},
file: 'dist/revenge.js',
format: 'iife',
footer: '//# sourceURL=Revenge',