From 57296ed3033bfb5a3333a51dcac8c877e425ecaa Mon Sep 17 00:00:00 2001 From: Arthur Lu Date: Tue, 8 Sep 2026 22:01:21 +0000 Subject: [PATCH] use gzip to reduce tx bytes to ~600K --- Makefile | 3 ++- index.html | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 696c160..3ef2cf7 100644 --- a/Makefile +++ b/Makefile @@ -5,11 +5,12 @@ build: clean mkdir -p dist cp wfa.js dist/wfa.js GOOS=js GOARCH=wasm CGO_ENABLED=0 go build -ldflags="-s -w" -trimpath -o dist/wfa.wasm . + gzip dist/wfa.wasm clean: @echo "======================== Cleaning Project ======================" go clean - rm -f dist/wfa.wasm dist/wfa.js cover.prof cpu.prof mem.prof test.test + rm -f dist/* cover.prof cpu.prof mem.prof test.test test: @echo "======================== Running Tests =========================" diff --git a/index.html b/index.html index 6daf0ca..5328d1e 100644 --- a/index.html +++ b/index.html @@ -4,7 +4,7 @@