React client app #5
5
Makefile
5
Makefile
@ -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
|
Loading…
Reference in New Issue
Block a user