forked from external-repos/squoosh
Use closure in optpng build, which shrinks the JS to less than half.
This commit is contained in:
@@ -27,6 +27,7 @@ echo "============================================="
|
|||||||
emcc \
|
emcc \
|
||||||
--bind \
|
--bind \
|
||||||
${OPTIMIZE} \
|
${OPTIMIZE} \
|
||||||
|
--closure 1 \
|
||||||
-s ALLOW_MEMORY_GROWTH=1 -s MODULARIZE=1 -s 'EXPORT_NAME="optipng"' \
|
-s ALLOW_MEMORY_GROWTH=1 -s MODULARIZE=1 -s 'EXPORT_NAME="optipng"' \
|
||||||
-o "optipng.js" \
|
-o "optipng.js" \
|
||||||
--std=c++11 \
|
--std=c++11 \
|
||||||
|
|||||||
Reference in New Issue
Block a user