bmustiata / fast-live-reload

A live reload that works with all the possible browsers.
18 stars 5 forks source link

not live reloading subfolders #9

Closed steveja42 closed 5 years ago

steveja42 commented 6 years ago

I have a simple local html file, and when I navigate to an html file in a subfolder, that html file does not live reload when changed. Example: If I run C:\Sites\JSPractice> flr -s . C:\Sites\JSPractice\index.html will be live reloaded, but C:\Sites\JSPractice\ajax\ajax.html will not be live reloaded.

bmustiata commented 5 years ago

What node version / windows version are you using? Your description seems to indicate that the file change listener only listens the first level of the folder, without recursing the other files.

steveja42 commented 5 years ago

I am using node version 8.11.3 and Windows 10. Yes, it seems to be only working for the first level of the folder.

On Mon, Sep 17, 2018 at 7:23 AM bmustiata notifications@github.com wrote:

What node version / windows version are you using? Your description seems to indicate that the file change listener only listens the first level of the folder, without recursing the other files.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/bmustiata/fast-live-reload/issues/9#issuecomment-422036827, or mute the thread https://github.com/notifications/unsubscribe-auth/AHzbmzHKyEGKo12e4KjowXg8ifkGdn3Vks5ub7BqgaJpZM4WgF1f .

steveja42 commented 5 years ago

I notice that if a js file in a subfolder is changed, the html file in the root will get reloaded, but an html file in a subfolder will not get reloaded. Is there a way to get it to reload the html files in subfolders?

steveja42 commented 5 years ago

Oops, sorry this is user error. The html files that weren't being live reloaded were missing the closing /html tag.

bmustiata commented 5 years ago

Great to hear, I started to feel guilty I didn't had time to test it.