From 26ed5fd8581bee76f67021eaa3567cb32d5d78f5 Mon Sep 17 00:00:00 2001 From: Ari Archer Date: Sun, 25 Sep 2022 03:58:16 +0300 Subject: [PATCH] Enable compressor in uglifyjs Signed-off-by: Ari Archer --- scripts/minjs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/minjs.sh b/scripts/minjs.sh index 404323c..55672da 100755 --- a/scripts/minjs.sh +++ b/scripts/minjs.sh @@ -8,7 +8,7 @@ main() { find content/js/ -type f \ -name "*.js" ! -name "*.min.*" ! -name "vfs_fonts*" \ - -exec uglifyjs -o {}.min {} \; \ + -exec uglifyjs --compress sequences=true,conditionals=true,booleans=true -o {}.min {} \; \ -exec rm {} \; \ -exec mv {}.min {} \; else