blob: 52cc8ccdc6ae6b3a2b101ad1681a850b58028cb8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
wasm-serve:
go run github.com/hajimehoshi/wasmserve@latest .
target-wasm: html/index.html
mkdir -p out
env GOOS=js GOARCH=wasm go build -o out/main.wasm .
cp html/index.html out/
cp /usr/lib/go/misc/wasm/wasm_exec.js out/
cp -r assets out/
clean:
rm -rf out
rm -rf go.sum
|