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:
16
www/index.html
Normal file
16
www/index.html
Normal 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>
|
||||||
Reference in New Issue
Block a user