Add an index.html file, taken from Bevy Cheatbook

https://bevy-cheatbook.github.io/platforms/wasm/webpage.html

I need a page to give the user, which loads some JS, which loads the
WASM file. The JS and WASM are both generated by the wasm-bindgen tool.
This commit is contained in:
2025-09-03 17:04:43 -05:00
parent 60417d6956
commit 01c50e4bb6

16
www/index.html Normal file
View File

@@ -0,0 +1,16 @@
<!doctype html>
<html lang="en">
<body style="margin: 0px;">
<script type="module">
import init from './boids.js'
init().catch((error) => {
if (!error.message.startsWith("Using exceptions for control flow, don't mind me. This isn't actually an error!")) {
throw error;
}
});
</script>
</body>
</html>