diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..de5081f --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,15 @@ +{ + // See https://go.microsoft.com/fwlink/?LinkId=733558 + // for the documentation about the tasks.json format + "version": "2.0.0", + "tasks": [ + { + "label": "Build WASM binary", + "type": "shell", + "command": "GOOS=\"js\" GOARCH=\"wasm\" go build -o main.wasm", + "windows": { + "command": "$Env:GOOS = \"js\"; $Env:GOARCH = \"wasm\"; go build -o public/main.wasm" + } + } + ] +}