Cleanup JS and better terser compression

This commit is contained in:
djmaze 2020-10-09 11:58:15 +02:00
parent 058217de02
commit ba7ed497b2
20 changed files with 247 additions and 298 deletions

View file

@ -73,7 +73,13 @@ const jsMin = () =>
.pipe(rename({ suffix: '.min' }))
.pipe(
terser({
output: {comments: false}
output: {
comments: false
},
compress:{
ecma: 6,
drop_console: true
}
})
)
.pipe(eol('\n', true))