aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-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)