mirror of
https://github.com/GoogleChromeLabs/squoosh.git
synced 2025-11-12 08:47:31 +00:00
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:
@@ -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