Replace 'wasm-pack' by 'trunk'
This commit is contained in:
parent
ec582ad68f
commit
08c4238dcb
14 changed files with 42 additions and 85 deletions
|
|
@ -5,15 +5,15 @@
|
|||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Recettes de cuisine</title>
|
||||
<link rel="stylesheet" type="text/css" href="/static/style.css">
|
||||
<link rel="modulepreload" href="/static/wasm/frontend.js" crossorigin="anonymous" as="fetch" type="application/wasm">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<script type="module">
|
||||
import init from '/static/frontend.js';
|
||||
async function run() {
|
||||
await init();
|
||||
}
|
||||
run();
|
||||
import init, * as bindings from '/static/wasm/frontend.js';
|
||||
const wasm = await init({ module_or_path: '/static/wasm/frontend_bg.wasm' });
|
||||
window.wasmBindings = bindings;
|
||||
dispatchEvent(new CustomEvent("TrunkApplicationStarted", {detail: {wasm}}));
|
||||
</script>
|
||||
|
||||
<div id="toast"></div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue