Algomancer/Full-Stack-Scala-Starter

How to integrate mulitple js applicatons

Opened this issue · 1 comments

In index.scala.html you include

 @scalajs.html.scripts("client",
        routes.Assets.versioned(_).toString,
        name => getClass.getResource(s"/public/$name") != null)

which includes the ScalaJSExample. How would I create multiple JS applications and include them separately in my views?

After reading more from the sbt web scalajs plugin you can achieve this by creating more client projects and adding them to the server build configuration with the scalaJSProjects setting.