~starkingdoms/starkingdoms

ref: 01d8dceedccac3ee389e5ad97bb161cdaf8b4a84 starkingdoms/web/index.html -rw-r--r-- 527 bytes
01d8dcee — core hell pt2 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, { greet } from "./dist/pkg";

            init().then(() => {
                greet("WebAssembly");
            })
        </script>
    </body>
</html>