wasmweb-sample/build
2020-08-20 14:51:06 +07:00

15 lines
212 B
Bash
Executable File

#!/bin/bash
echo "build wasm pack..."
wasm-pack build
if [ $? -eq 0 ]
then
echo -e "\e[32mBuild successfully!"
else
echo -e "\e[31mBuild failed for wasm-pack into script!" >&2
exit 1
fi
echo -e "\e[39m"