Reloads the browser after a code change in your web app.
When developing static websites, use this plugin as a dev server to serve files from a local directory. Any recompile triggers a browser refresh.
When developing backends that serve HTML, add a script to your dev HTML that watches for build events and refreshes the browser on recompilation.
addSbtPlugin("com.malliina" % "live-reload" % "0.2.4")
LiveReloadPlugininstead in build.sbt:
val app = project .in(file(".")) .enablePlugins(LiveReloadPlugin)
com.malliina.live.LiveReload.scriptto the HTML of your web page.
When developing for example http4s apps with
sbt ~reStart, enable
LiveRevolverPlugin. Changes to source code will reload the web page after recompilation.
Folder http4s-app contains an example http4s app with live reloading enabled.
Releasing a new version
To release a new version to Maven Central, run:
This will push a new tag to version control, which triggers this GitHub Action that pushes artifacts to Maven Central.
Li Haoyi's workbench:
- Is specific to Scala.js
- Uses libraries I'm not interested in at this time