Build WebAssembly in release mode

This commit is contained in:
RunasSudo 2021-06-05 15:08:48 +10:00
parent 673149e184
commit de7a2ad20c
Signed by: RunasSudo
GPG Key ID: 7234E476BF21C61A

View File

@ -1,2 +1,3 @@
#!/bin/sh #!/bin/sh
cargo build --lib --target wasm32-unknown-unknown && /home/runassudo/.cargo/bin/wasm-bindgen --target no-modules target/wasm32-unknown-unknown/debug/opentally.wasm --out-dir html --no-typescript #cargo build --lib --target wasm32-unknown-unknown $@ && /home/runassudo/.cargo/bin/wasm-bindgen --target no-modules target/wasm32-unknown-unknown/debug/opentally.wasm --out-dir html --no-typescript
cargo build --lib --target wasm32-unknown-unknown --release && /home/runassudo/.cargo/bin/wasm-bindgen --target no-modules target/wasm32-unknown-unknown/release/opentally.wasm --out-dir html --no-typescript