feat(scripts/build): mangle names, and compress
This commit is contained in:
parent
bea79efb4f
commit
4606a9edc2
1 changed files with 6 additions and 0 deletions
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue