I configured a static folder to be served by Javalin:
Javalin.create {
it.addStaticFiles("/public")
}
In Javalin logs I see:
[main] INFO io.javalin.Javalin - Static file handler added:
{urlPathPrefix: "/", path: "/public", location: Location.CLASSPATH}
Resolved path: 'file:///Users/ls/projects/store/build/resources/main/public/'
[main] INFO io.javalin.Javalin -
Which is fine. Files get served. But every time I change a JS/HTML/CSS file, I need to restart Javalin. Is there any way around this? I just wanted to refresh the browser for the sake of quick development.