Bunle OAK static assets to the compiled binary
Hi, I am currently switching from NodeJS to Deno, and so far so good!
One of the reasons for this switch is how easily i can compile everyting up in one executable, which is important for my use case.
However, I'm not familiar with OAK and how it integrates, as i come from Express. I have the current code, which runs fine on the CLI, but doesn't serve the assets once compiled:
Is this something that is supported? Is there any way to bundle assets inside the executable? I've seen the Leaf library, but i wouldn't know how to integrate it in this scenario
thanks
2 Replies
GitHub
GitHub - NfNitLoop/deno-embedder: Dev tools for embedding static fi...
Dev tools for embedding static files into Deno as code. - GitHub - NfNitLoop/deno-embedder: Dev tools for embedding static files into Deno as code.
Docs aren't very complete, but after looking around the source code and implementing it correctly, it works like a charm! Thanks a bunch