sjrd / scalajs-sbt-vite-laminar-chartjs-example

An example of using Scala.js with sbt, Vite, Laminar and Chart.js
Apache License 2.0
88 stars 18 forks source link

More complete tutorial - full stack #7

Open OndrejSpanel opened 6 months ago

OndrejSpanel commented 6 months ago

This tutorial is good, but I think it is a bit limited even for a tutorial. A typical Scala.js application is full stack (both frontend and backend), with the backend serving the front-end. It is not clear to me how to integrate Vite into this.

I can create a simple application skeleton in SBT which will take care of packaging the Scala.js result into the server app, this is something I have done several times, but I do not know how would I use Vite from SBT to do its work.