Merge pull request #728 from kripken/closure

Use closure in optipng build, which shrinks the JS to less than half
This commit is contained in:
Surma
2020-02-27 18:36:37 +01:00
committed by GitHub

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 \