lihaoyi / workbench-example-app

An example application written in ScalaJS using scala-js-dom and scala-js-workbench
204 stars 109 forks source link

refreshBrowsers should work in jvm-js-shared example #49

Open cdietze opened 7 years ago

cdietze commented 7 years ago

The refreshBrowsers feature does not work in the jvm-js-shared branch example. When sbt is run using ~re-start the expected behavior is that the browser reloads after a change to the JS-file. However, a manual refresh is needed.

I assume this is because refreshBrowsers is by default triggered after fastOptJS, but this is too early and we would need a trigger after the server restarted. However, what surprises me that if I make another the change the refresh does not pick up the first change.