与 SBT 一起使用
依赖性
libraryDependencies += "org.scala-js" %%% "scalajs-dom" % "0.9.1" // (Triple %%%)
运行
sbt run
运行连续编译:
sbt ~run
编译为单个 JavaScript 文件:
sbt fastOptJS
libraryDependencies += "org.scala-js" %%% "scalajs-dom" % "0.9.1" // (Triple %%%)
sbt run
sbt ~run
sbt fastOptJS