go build linker opts

This commit is contained in:
CrispyBaguette 2021-12-11 18:07:10 +01:00
parent 6816585d61
commit 83b44f5fd3

View File

@ -1,7 +1,10 @@
build-wasm: build-wasm:
cd src && GOOS=js GOARCH=wasm go build -o ../client/public/main.wasm . cd src && GOOS=js GOARCH=wasm go build -o ../client/public/main.wasm .
build-wasm-release:
cd src && GOOS=js GOARCH=wasm go build -ldflags="-s -w" -o ../client/public/main.wasm .
build-react: build-react:
cd client && npm run build cd client && npm run build
all: build-wasm build-react all: build-wasm-release build-react