Skip to content

Loading script from public folder not working #863

Answered by ctron
dominikwilkowski asked this question in Q&A
Discussion options

You must be logged in to vote

You need to add the script to the index.html, otherwise it won't be processed by trunk.

Alternatively, you can aim for an approach with wasm-bindgen, binding the JS API to Rust. That will lead to wasm-bindgen doing the processing, and trunk picking that up.

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@dominikwilkowski
Comment options

@ctron
Comment options

Answer selected by dominikwilkowski
@ctron
Comment options

@dominikwilkowski
Comment options

@dominikwilkowski
Comment options

@ctron
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants