From 83b44f5fd3060eae6a7dd6fa8c550f1a5ed535fe Mon Sep 17 00:00:00 2001 From: CrispyBaguette Date: Sat, 11 Dec 2021 18:07:10 +0100 Subject: [PATCH] go build linker opts --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index b8a7b6f..dd13637 100644 --- a/Makefile +++ b/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 \ No newline at end of file +all: build-wasm-release build-react \ No newline at end of file