diff options
author | Li Haoyi <haoyi@dropbox.com> | 2014-02-15 10:33:30 -0800 |
---|---|---|
committer | Li Haoyi <haoyi@dropbox.com> | 2014-02-15 10:33:30 -0800 |
commit | ecb9fdd0719bd0087e3fe4f7e4a4717e93117d27 (patch) | |
tree | 0a3ae4f750730823345c248f065b65ce205f1104 /readme.md | |
parent | e8cbb1b7609c3764a61d0965d556a84ee275413b (diff) | |
download | workbench-ecb9fdd0719bd0087e3fe4f7e4a4717e93117d27.tar.gz workbench-ecb9fdd0719bd0087e3fe4f7e4a4717e93117d27.tar.bz2 workbench-ecb9fdd0719bd0087e3fe4f7e4a4717e93117d27.zip |
fixed some stuff
Diffstat (limited to 'readme.md')
-rw-r--r-- | readme.md | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -19,9 +19,13 @@ To Use - Modify the `packageJS` task with the following setting, to make it generate the snippet of `workbench.js` file needed to communicate with SBT: ```scala +import scala.js.workbench.Plugin._ + +buildSettingsX + packageJS in Compile := { - (packageJS in Compile).value :+ scala.js.workbench.generateClient.value - } + (packageJS in Compile).value :+ scala.js.workbench.generateClient.value +} ``` - Define your `bootSnippet`, which is a piece of javascript to be run to start your application, e.g. `bootSnippet := "ScalaJS.modules.example_ScalaJSExample().main();"`. scala-js-workbench requires this so it can use it to re-start your application later on its own. You do not also need to include this on the page itself, as scala-js-workbench will execute this snippet when the browser first connects. |