mirror of
https://github.com/GoogleChromeLabs/squoosh.git
synced 2025-11-16 18:49:50 +00:00
This delegates loading of Wasm modules to Webpack itself, making wrapper code simpler. Emscripten-generated modules are still using custom loading glue as they're not compatible with Webpack.
22 lines
599 B
Bash
Executable File
22 lines
599 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
echo "============================================="
|
|
echo "Compiling wasm"
|
|
echo "============================================="
|
|
(
|
|
wasm-pack build
|
|
wasm-strip pkg/resize_bg.wasm
|
|
)
|
|
echo "============================================="
|
|
echo "Compiling wasm done"
|
|
echo "============================================="
|
|
|
|
echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
|
|
echo "Did you update your docker image?"
|
|
echo "Run \`docker pull ubuntu\`"
|
|
echo "Run \`docker pull rust\`"
|
|
echo "Run \`docker build -t squoosh-resize .\`"
|
|
echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
|