|Rohan Sircar 72ddfc3087||8 months ago|
|assets||8 months ago|
|project||8 months ago|
|src/main||8 months ago|
|.gitignore||8 months ago|
|.scalafmt.conf||8 months ago|
|README.md||8 months ago|
|build.sbt||8 months ago|
|index.html||8 months ago|
|yarn.lock||8 months ago|
This is a demo of an independent scalajs sbt project consisting of only the frontend, that communicates with the backend from the play-slick-demo project - This is useful because configuring play to serve frontend files is a hassle, libray bundling mode refused to work for me in the integrated project whereas here it's trivial. Library bundling mode makes incremental compilation really fast( ~2 seconds ). This also speeds up incremental compilation of the backend project.
I have ported over all the code from my previous scalajs-react project, and this is the one I will be using primarily from now.
Other features are -
sbt "fastOptJS::startWebpackDevServer; ~fastOptJS" shell
This starts the webpack dev server, the scalajs-bundler to bundle js dependencies, and js file continuous compilation
http://localhost:8080to see it in action