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
I was wondering why 11ty does not implement watching of "unlink" events.
When files are deleted from input folder, Eleventy does nothing, not even trigger the browser refresh.
This looks like kind of a bug when deleting an Item that, for instance, is listed on a menu. The item appears to be still there and can also be opened.
The only way to update the page is to stop Eleventy, delete output folder, and restart it.
Watching/syncing of deleted files would be a nice feature to have, at least as a switchable configuration option.
The text was updated successfully, but these errors were encountered:
You can find the fix in my Eleventy-based web-starter.
In particular this is the code that does the trick.
The code is not reusable as-is since it takes care of other things as well, but should give an idea of how the fix works.
I was wondering why 11ty does not implement watching of "unlink" events.
When files are deleted from input folder, Eleventy does nothing, not even trigger the browser refresh.
This looks like kind of a bug when deleting an Item that, for instance, is listed on a menu. The item appears to be still there and can also be opened.
The only way to update the page is to stop Eleventy, delete output folder, and restart it.
Watching/syncing of deleted files would be a nice feature to have, at least as a switchable configuration option.
The text was updated successfully, but these errors were encountered: