Hi, how to add livereload.js support in ktor app?
# ktor
m
Hi, how to add livereload.js support in ktor app?
a
On the front end you need to embed the livereload.js file as described here. The exact solution depends on how the HTML is served.
m
Hi Aleksei, thank you. I am using thymeleaf templates as per documentation of Ktor. I was able to use live reload while using Spring & spring boot devtools out of the box. I did not download livereload js to my static folder in the spring app. I think the server autowired it. I am looking for similar server side support in Ktor. If required I can download livereload.js to my resources/js folder. But how would I start live reload server within ktor ?
a
Unfortunately, there is no in-built solution for the livereload in Ktor. You should find the information about the ways of the integration in the livereload documentation.