From de7a2ad20cf14e6d07fa6400f0a1961e2864c56f Mon Sep 17 00:00:00 2001 From: RunasSudo Date: Sat, 5 Jun 2021 15:08:48 +1000 Subject: [PATCH] Build WebAssembly in release mode --- build_wasm.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build_wasm.sh b/build_wasm.sh index d4d9df6..bad0ed5 100755 --- a/build_wasm.sh +++ b/build_wasm.sh @@ -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