-
add sbt-scalajs plugin to
project/plugins.sbt
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.0.0")
-
add the following to
build.sbt
-
specify the
sbt
version under project/build.propertiessbt.version=1.3.7
enablePlugins(ScalaJSPlugin)
// This is an application with a main method
scalaJSUseMainModuleInitializer := true
npm install source-map-support
fastOptJS