Teste wasm build

This commit is contained in:
2024-09-06 14:40:46 -03:00
parent d325078cd5
commit 7ceebfe978
3 changed files with 3 additions and 29 deletions

2
.gitignore vendored
View File

@ -1,4 +1,6 @@
package/
src/wasm/*
target/
!src/wasm/index.html
Cargo.lock

View File

@ -1,28 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Renderer</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
body {
margin: 0;
padding: 0;
}
canvas {
background-color: black;
}
</style>
</head>
<body id="wasm-surface">
<script type="module">
import init from "../package/renderer.js";
init().then(() => { });
</script>
</body>
</html>

View File

@ -1,3 +1,3 @@
#!/usr/bin/env sh
wasm-pack build --target web -d package
wasm-pack build --target web -d src/wasm