Run wasm-opt on hqx module

This commit is contained in:
Surma
2019-06-19 00:25:09 +01:00
parent fbaa282f07
commit 26e9a848dd
4 changed files with 19 additions and 1 deletions

View File

@@ -8,6 +8,8 @@ echo "============================================="
(
rustup run nightly \
wasm-pack build --target no-modules
mv pkg/squooshhqx_bg.wasm pkg/squooshhqx_bg.unopt.wasm
wasm-opt -Os --no-validation pkg/squooshhqx_bg.unopt.wasm -o pkg/squooshhqx_bg.wasm
wasm-strip pkg/squooshhqx_bg.wasm
rm pkg/.gitignore
)