Build WebAssembly in release mode

This commit is contained in:
RunasSudo 2021-06-05 15:08:48 +10:00
parent 673149e184
commit de7a2ad20c
No known key found for this signature in database
GPG Key ID: 7234E476BF21C61A
1 changed files with 2 additions and 1 deletions

View File

@ -1,2 +1,3 @@
#!/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