~starkingdoms/starkingdoms

ref: dda1b9e50e823af10d1d19ce27bf8a5296c84b9e starkingdoms/web/index.html -rw-r--r-- 523 bytes
dda1b9e5 — core hell is over? 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<!DOCTYPE html>
<html lang="en-US">
    <head>
        <meta charset="utf-8" />
        <title>wasm testing</title>
    </head>

    <body>
        <script type="module">
            // If you're getting build errors here | you need to run `just build_client_bundle` first, to compile client code
            //                                     v
            import init from "./dist/client.js";

            init().then(() => {
                // wasm-pack code here
            })
        </script>
    </body>
</html>