Scala.js

You can use kantan.sbt’s scala.js support by adding the following SBT line:

addSbtPlugin("com.nrinaudo" % "kantan.sbt-scalajs" % "2.8.2")

This lets you declare cross-projects using kantanCrossProject rather than crossProject.

Calling kantanCrossProject(id) will:

Additionally, the plugin declares the following new tasks:

Finally, the two following commands are added:


Other tutorials: