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

238 views Asked by At

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?

1

There are 1 answers

4
Naoki Takezoe On BEST ANSWER

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