eleventy
eleventy copied to clipboard
With --serve, changing a partial triggers a rebuild but doesn't use the updated partial
trafficstars
Operating system
Windows 10
Eleventy
2.0.1
Describe the bug
If you run 11ty in "serve" mode and change a partial file, a rebuild is triggered but the changed partial is not used.
Note that several comments at the bottom of https://github.com/11ty/eleventy/issues/596 describe similar issues (both MacOS and Windows).
Reproduction steps
This dead-simple project demonstrates the issue. From its README:
npm installnpx eleventy --serve- Browse to
localhost:8080-- you should see "Hello Bug!" - Change
src/_includes/world.hbsto contain "World!" instead of "Bug!" -- a rebuild is triggered and the page is reloaded, but it still says "Hello Bug!" - Restart
npx eleventy --serveand reload the page -- now you correctly see "Hello World!"
Expected behavior
After changing "Bug!" to "World!" the web page should show "Hello World!" without needing to restart the server.
Reproduction URL
https://github.com/RickMohr/eleventyBug
Screenshots
No response