run wasm script

This commit is contained in:
Lauri Räsänen 2023-01-28 13:23:51 +02:00
parent cd6e8a28cc
commit 998b7747e9

5
run-wasm.sh Executable file
View file

@ -0,0 +1,5 @@
#!/bin/bash -e
wasm-pack build --target web
sed 's/.\/pkg/./g' index.html > pkg/index.html
miniserve pkg --index index.html