go build linker opts
This commit is contained in:
parent
6816585d61
commit
83b44f5fd3
5
Makefile
5
Makefile
@ -1,7 +1,10 @@
|
||||
build-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:
|
||||
cd client && npm run build
|
||||
|
||||
all: build-wasm build-react
|
||||
all: build-wasm-release build-react
|
Loading…
Reference in New Issue
Block a user