Add a Makefile to make web builds more ergonomic

Call with `make -f makefile_web` to produce a web root for serving. Use
target "boids_web_root.tar" to bundle the files into a tarball. For...
publishing... or something.

The `wasm-server-runner` program seems to supply it's own index.html and
is doing *something* regarding MIME types -- hosting a dev build of the
Boids program results in the browser complaining about "" (empty string)
being an invalid MIME type.

I want my own index.html during testing, and I can't figure out why the
MIME type info is wrong. I've decided to automate the web-root build
process and serve it up with whatever webserver I have on hand.
This commit is contained in:
2025-10-28 12:22:26 -05:00
parent 57a4d0924d
commit 4eb4fefeb2
2 changed files with 33 additions and 0 deletions

1
.gitignore vendored
View File

@@ -1 +1,2 @@
/target
/out