Skip to content
master
Switch branches/tags
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

Tiny Scala.js example

These are some slides and code I used for a talk about Scala.js.

Get started

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 siblings example-extdeps.js and example-intdeps.js. You can now open index-dev.html in your favorite Web browser!

The optimized version

For ultimate code size reduction, use optimizeJS. While index-dev.html refers to the JavaScript emitted by packageJS, index.html refers to the optimized JavaScript emitted by optimizeJS.

About

Some slides and an example I used in a talk about Scala.js

Resources

Releases

No releases published

Packages

No packages published