You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi folks, let me set the scene for the following bug. Or at least to me looks like a bug.
Bug: Files added via addWatchTarget, when changed, trigger a rebuild, but not a reload, which is desired. Expected: Files added via addWatchTarget both rebuilds the project and reloads the browser tab.
The project has a layout with a custom shortcode.
The shortcode reads a file async and returns a string.
Because modifying this external file changes the final output I want to add that file as part of the build/reload pipeline.
Adding the file through addWatchTarget works triggering a rebuild, you modify the file and the site rebuilds, but you need to manually reload. Even when the final output strings has changed.
Adding the directory to the watch array in the server options skips build entirely.
I created a recreation environment. The file to listen is src/assets/main.css, for the project to rebuild and reload.
If you refresh the project in the browser you will notice the modified styles.
I tried all combinations of dev server configs (especially around domDiff and liveReload), and nothing triggers a reload which is desired and at least for expected, at least via some config.
The text was updated successfully, but these errors were encountered:
Hi folks, let me set the scene for the following bug. Or at least to me looks like a bug.
Bug: Files added via
addWatchTarget
, when changed, trigger a rebuild, but not a reload, which is desired.Expected: Files added via
addWatchTarget
both rebuilds the project and reloads the browser tab.addWatchTarget
works triggering a rebuild, you modify the file and the site rebuilds, but you need to manually reload. Even when the final output strings has changed.watch
array in the server options skips build entirely.I created a recreation environment. The file to listen is
src/assets/main.css
, for the project to rebuild and reload.eleventy_no_reload_reproduction.zip
To reproduce:
npm ci
on the root foldernpm start
src/assets/main.css
I tried all combinations of dev server configs (especially around
domDiff
andliveReload
), and nothing triggers a reload which is desired and at least for expected, at least via some config.The text was updated successfully, but these errors were encountered: