From 66999d258502d8328ce880a11857e5c3d7a71979 Mon Sep 17 00:00:00 2001 From: Nikolay Date: Fri, 1 Oct 2021 19:27:08 +0800 Subject: [PATCH] reduce size --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 0226a09..82b152a 100644 --- a/Makefile +++ b/Makefile @@ -18,7 +18,7 @@ docs: build build-web: cp "$$(go env GOROOT)/misc/wasm/wasm_exec.js" web/ cp -r assets web/assets - cd web; GOARCH=wasm GOOS=js go build -o main.wasm main.go + cd web; GOARCH=wasm GOOS=js go build -ldflags="-s -w" -o main.wasm main.go run-web: build-web cd web; python3 -m http.server 8000