Skip to content
This repository has been archived by the owner on Jun 25, 2020. It is now read-only.

Latest commit

 

History

History
27 lines (16 loc) · 493 Bytes

File metadata and controls

27 lines (16 loc) · 493 Bytes

Scala.js Demo

Preparation

  • 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.properties

    sbt.version=1.3.7

enablePlugins(ScalaJSPlugin)
// This is an application with a main method
scalaJSUseMainModuleInitializer := true

enable Stack Trace in Node

npm install source-map-support

Generate Javascript

fastOptJS