aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbrian cully <bjc@spork.org>2025-12-28 17:16:31 -0500
committerbrian cully <bjc@spork.org>2025-12-28 17:16:31 -0500
commitf3aa9e4d5bb2ffb9226403b1b018ec56efa7bfd3 (patch)
tree46213e96d9b26a5a854a6e375d2e2c449224e9a8
parentd485b9e2cd5429a91a57ff443a30a25522b7f7f0 (diff)
downloadpolyring-f3aa9e4d5bb2ffb9226403b1b018ec56efa7bfd3.tar.gz
polyring-f3aa9e4d5bb2ffb9226403b1b018ec56efa7bfd3.zip
make: don't emit a bunch of wasm-pack stuff we don't need
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 5d17ff0..677f573 100644
--- a/Makefile
+++ b/Makefile
@@ -1,10 +1,13 @@
BUILDDIR=site
HOST=coleridge:public_html/automathon
+# --dev may be useful, but it makes things a lot slower and bigger
+WASMPACKFLAGS=--no-pack --no-typescript
+
# the --target is currently necessary or firefox will return
# "disallowed mime type" -bjc 7-aug-2025
build:
- wasm-pack build --target web --out-dir $(BUILDDIR)/wasm
+ wasm-pack build --target web --out-dir $(BUILDDIR)/wasm $(WASMPACKFLAGS)
serve: build
(cd $(BUILDDIR) && python -m http.server 8118)