Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Init script location in index.html #71

Closed
MartinKavik opened this issue Oct 5, 2020 · 1 comment
Closed

Init script location in index.html #71

MartinKavik opened this issue Oct 5, 2020 · 1 comment

Comments

@MartinKavik
Copy link
Contributor

How can I change the init script location in index.html?
(Is it possible? Did I overlook something in README?)

Input:

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
</head>

<body>
    <section id="app"></section>
    <trunk-link type="rust">
</body>

</html>

(I've copy-pasted trunk-link from #46)

Expected output:

...
<body>
    <section id="app"></section>
    <script type="module">
      import init from '/index-719b4e04e016028b.js';
      init('/index-719b4e04e016028b_bg.wasm');
    </script>
</body>
...

Thanks!

@thedodd
Copy link
Member

thedodd commented Oct 6, 2020

Looks like this issue and #72 are duplicates :). I'll close this one.

@thedodd thedodd closed this as completed Oct 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants