Tiny Scala.js example
These are some slides and code I used for a talk about Scala.js.
Please note that the project uses a now outdated version of Scala.js, so the commands are slightly different from the current documentation.
To get started, open
sbt in scala-js-tiny-example project, and issue the task
packageJS. This creates the file
target/scala-2.10/example.js and its
You can now open
index-dev.html in your favorite Web browser!
The optimized version
For ultimate code size reduction, use