Building true single file applications #1014
therealprof
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm working on applications I would like to deliver as a single file application in the end, optionally as a two-file application for smaller size.
I know the manual steps to be done to produce those. The 2-file application can be achieved by including the produced JS shim into the HTML file as a script. The 1-file application is a bit gnarlier because it requires base64 encoding of the whole WASM code and decoding it during initialisation.
I tried to use the "inline" trick in the HTML on the generated JS shim file but that doesn't work because it materialises only after the processing of the "inline" resource.
But I would really love to have that feature included directly in
trunk
. Conveniently (or rather not) when I ask AI about that, it hallucinates that there would be asingle-file
option intrunk
which would allow achieving that and even after some long discussions it keeps being convinced that I'm merely holding it wrong. 😅Any suggestions? Thoughts?
Beta Was this translation helpful? Give feedback.
All reactions