lldap/app/build.sh

18 lines
313 B
Bash
Raw Normal View History

2021-05-08 10:00:52 +00:00
#! /bin/sh
cd $(dirname $0)
if ! which wasm-pack > /dev/null 2>&1
then
>&2 echo '`wasm-pack` not found. Try running `cargo install wasm-pack`'
exit 1
fi
2023-03-05 11:45:30 +00:00
if ! which gzip > /dev/null 2>&1
then
2023-03-05 11:45:30 +00:00
>&2 echo '`gzip` not found.'
exit 1
fi
2023-03-05 11:45:30 +00:00
wasm-pack build --target web --release
gzip -9 -f pkg/lldap_app_bg.wasm