Setting up
Note that this setup has already been completed when you start using the template. The following steps are only for reference:
- To enable Scala.js with Play, you first need to add the following code to
project
/plugins.sbt
:
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "0.6.24")
addSbtPlugin("com.vmunier" % "sbt-web-scalajs" % "1.0.8-0.6")
- In the
build.sbt
, you need to add the plugins by adding the following code in theclient
variable:
.enablePlugins(ScalaJSPlugin, ScalaJSWeb)
- You need to add the ScalaTags dependency by adding the following in
libraryDependencies
of the client configuration:
"com.lihaoyi" %%% "scalatags" % "0.6.7"