4 ms·
Always been curious about workflow of people who use Scala.js. I am a complete newbie when it comes to frontend. How do you do frontendish interactive developme
by AzzieElbab 7y ago
Always been curious about workflow of people who use Scala.js. I am a complete newbie when it comes to frontend. How do you do frontendish interactive development considering scalac's slowness?
- sjrd 7y agoscalac is only slow when it needs to compile an entire project. But the Scala tooling ecosystem has invested a lot in incremental compilation, which means that most of the time when you make a change, only 1 or 2 files are recompiled, which is quite snappy. In turn, the Scala.js linker also performs its linking and optimizations incrementally, so that in an interactive development setting, the whole cycle is quite fast.
- AzzieElbab 7y agofine, but what tooling/workflow would one use for the type of development javascripters are accustomed to? Like make a change and immediately observe result on the page?
- sjrd 7y agoWorkbench [1], for example :) [1] https://github.com/lihaoyi/workbench https://github.com/lihaoyi/workbench
- AzzieElbab 7y agoThank you. Did not know about this plugin
- ramnivasl 7y agoAlso, if you use webpack (directly or through scalajs-bundler), the use of webpack-dev-server makes live loading automatic.