Use closure in optpng build, which shrinks the JS to less than half.

This commit is contained in:
Alon Zakai
2020-02-27 09:16:43 -08:00
parent 1b7d3fa394
commit 48c06e86fa

View File

@@ -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 \