Build WASM in release
This commit is contained in:
parent
98899c80b0
commit
4889296f7a
1 changed files with 3 additions and 3 deletions
|
@ -9,14 +9,14 @@ if ! [[ $(wasm-bindgen --version) ]]; then
|
||||||
cargo update
|
cargo update
|
||||||
fi
|
fi
|
||||||
|
|
||||||
BUILD=debug
|
# BUILD=debug
|
||||||
# BUILD=release
|
BUILD=release
|
||||||
|
|
||||||
# Clear output from old stuff:
|
# Clear output from old stuff:
|
||||||
rm -rf docs/*.wasm
|
rm -rf docs/*.wasm
|
||||||
|
|
||||||
echo "Build rust:"
|
echo "Build rust:"
|
||||||
cargo build -p example_wasm --target wasm32-unknown-unknown
|
cargo build --release -p example_wasm --target wasm32-unknown-unknown
|
||||||
|
|
||||||
echo "Generate JS bindings for wasm:"
|
echo "Generate JS bindings for wasm:"
|
||||||
FOLDER_NAME=${PWD##*/}
|
FOLDER_NAME=${PWD##*/}
|
||||||
|
|
Loading…
Reference in a new issue