Commit Graph

3 Commits

Author SHA1 Message Date
3c0cf85da5 Drop extra suffix in wasm-bindgen output name
Oops, it's not supposed to have a file suffix! It's a bit annoying that
it still produces both a WASM and JS file, just not the right ones (and
no _bg.wasm at all). Especially without any warning that it is doing
something different than normal. Oh well.
2025-10-28 12:42:44 -05:00
39925b0c4e Rename WASM & JS output to match HTML
The index.html file calls for a "boids.js", so I need the Makefile to
produce one. I could change it, but that's off-topic for now so I won't.
2025-10-28 12:42:39 -05:00
4eb4fefeb2 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.
2025-10-28 12:22:26 -05:00