1
0
Fork 0

Update wasm version

This commit is contained in:
Florian RICHER 2022-06-19 13:53:40 +02:00
parent 6f68444dc7
commit 1c1e521b92
2 changed files with 14 additions and 2 deletions

View file

@ -5,13 +5,13 @@
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Tutorial 13 Threading</title>
<title>Tuto1</title>
</head>
<body>
<div id="wasm-example"></div>
<script type="module">
import init from "./pkg/tutorial13_threading.js";
import init from "./pkg/tuto1.js";
init().then(() => {
console.log("WASM Loaded");
});
@ -19,6 +19,8 @@
<style>
body {
background-color: #444;
margin: 0;
padding: 0;
}
canvas {
background-color: black;

10
run_web.sh Executable file
View file

@ -0,0 +1,10 @@
#!/bin/bash
if [[ $1 == "dev" ]]; then
ARGS="--dev"
else
ARGS="--release"
fi
wasm-pack build -t web $ARGS
python3 -m http.server