helix-cli icon indicating copy to clipboard operation
helix-cli copied to clipboard

auto-reload on `.html` resources

Open davidnuescheler opened this issue 1 year ago • 1 comments

currently it seems that instant auto reload of .js and .css doesn't work when working on .html. i don't think there is a downside of also supporting auto reload of changed resources for those cases.

davidnuescheler avatar Jul 24 '24 19:07 davidnuescheler

it looks like we would need to add the injection of livereload.js for static .html resources as well, which seems to change the flow a little bit here: https://github.com/adobe/helix-cli/blob/34852168091fe1cc57e7aefedefc3d59a4a02ed1/src/server/HelixServer.js#L73

davidnuescheler avatar Jul 24 '24 20:07 davidnuescheler

We can do this as a follow-up to #2594

trieloff avatar Sep 19 '25 08:09 trieloff

PR #2599 has been created to implement HTML auto-reload functionality. All tests are passing, though there's a CodeQL alert about potential path injection that appears to be a false positive since we have proper path validation in place.

trieloff avatar Sep 19 '25 08:09 trieloff

:tada: This issue has been resolved in version 16.15.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

adobe-bot avatar Sep 22 '25 08:09 adobe-bot