figwheel-main

hindol 2022-01-06T17:22:36.000800Z

Hi, I am new to Figwheel. Is there a way to hot reload HTML files?

2022-01-07T08:12:00.000900Z

HTML is generally updated by injecting new code into your page via hot reloading, and then having your code update the relevant parts of the page, normally a div including the entirety of the page content.

2022-01-07T08:12:28.001100Z

There is no such thing as hot reloading an entire HTML document. That would just be plain old reloading.

2022-01-07T08:13:24.001300Z

Sound like you a looking for a tool to trigger a js/document.reload on file changes. I'm sure there are plenty of those, but that's not what figwheel is for.

hindol 2022-01-07T10:27:25.001500Z

That clarifies. But since Figwheel promises to reload on CSS change, I thought HTML is possible too.

2022-01-07T11:05:24.001700Z

It hot loads CSS into the existing document. The way browsers work, reloading the entire HTML document is best done with an actual reload.