Skip to content

Is there a built-in way to bundle assets? #203

Answered by ptrdom
andrew-selvia asked this question in Q&A
Discussion options

You must be logged in to vote

You can see asset bundling in action in this example - https://github.com/ptrdom/scalajs-esbuild/tree/main/sbt-scalajs-esbuild-web/examples/basic-web-project. Caveat is that the assets have to be imported inside source files - for example, "loose" assets that are referenced only in index.html won't get put inside output directory. Only assets from index.html that are picked up are entry point files - main.js in the linked example case.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@andrew-selvia
Comment options

Answer selected by andrew-selvia
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