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 theclientvariable:
.enablePlugins(ScalaJSPlugin, ScalaJSWeb)
- You need to add the ScalaTags dependency by adding the following inÂ
libraryDependenciesof the client configuration:
"com.lihaoyi" %%% "scalatags" % "0.6.7"