From 48c06e86fa3a055ded54746579534f8f2d0e04c4 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Thu, 27 Feb 2020 09:16:43 -0800 Subject: [PATCH] Use closure in optpng build, which shrinks the JS to less than half. --- codecs/optipng/build.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/codecs/optipng/build.sh b/codecs/optipng/build.sh index 5f4c3927..3a523b59 100755 --- a/codecs/optipng/build.sh +++ b/codecs/optipng/build.sh @@ -27,6 +27,7 @@ echo "=============================================" emcc \ --bind \ ${OPTIMIZE} \ + --closure 1 \ -s ALLOW_MEMORY_GROWTH=1 -s MODULARIZE=1 -s 'EXPORT_NAME="optipng"' \ -o "optipng.js" \ --std=c++11 \