Closed atooni closed 6 years ago
Thanks for updating the documentation. This seems very useful
@julienrf WDYT?
Hi Julien, thanks for your comments. The code snippets I have used in the docs are actually coming from my own project where I have used the solution I contributed to package up my ScalaJS application. Are you asking to create an example in scalajs-bundler itself and use the example from there ? I could have a look if that can be achieved easily and then also extend the text a bit.
Are you asking to create an example in scalajs-bundler itself and use the example from there ?
Yes, that’s the idea. You can see how it is achieved in the other sections of the cookbook: you can create empty code snippets having an src
attribute pointing to a relative path:
~~~ scala src=../../../sbt-scalajs-bundler/src/sbt-test/sbt-scalajs-bundler/global-namespace-with-jsdom-unit-testing/build.sbt#relevant-settings
~~~
I can have a look, it's a bit more involved than what I had in mind originally by just adding a few lines to the docs.
Hi, I have now added an example for my cookbook update to the testcases and also updated the cookbook with the relevant information.
Thanks for your patience @atooni!
Thanks for merging
I had to search through a few docs to get this information into my build.sbt. It might be nice to have an example all in one place.,
Also the mappings must be added to Universal/packageBin, not Compile/packageBin.