scalasbtjettyscalatrascalatra-sbt

Scalatra livereload when changing static files such as *.js or *.css in the webapp dir


So after running the command recommended in Scalatras guides, at root dir:

$ sbt
> ~;jetty:stop;jetty:start

I get jetty to reload changes when I make changes in scala files, but if I make changes in js or css I must end jetty and relaunch the same command.

Is there anyway to improve this workflow? how to livereload also when files inside webapp (*.js, *.css files) dir have been changed?


Solution

  • Scalatra should reload resources under webapp directory by just start your apps with set ~jetty:start.