diff --git a/src/Eleventy.js b/src/Eleventy.js index f918ab746..b5084f4b4 100644 --- a/src/Eleventy.js +++ b/src/Eleventy.js @@ -1217,9 +1217,14 @@ Arguments: await watchRun(path); }); - watcher.on("unlink", (path) => { - // this.logger.forceLog(`File removed: ${path}`); + watcher.on("unlink", async (path) => { + // Emulated passthrough copy logs from the server + if (!this.eleventyServe.isEmulatedPassthroughCopyMatch(path)) { + this.logger.forceLog(`File removed: ${path}`); + } + this.fileSystemSearch.delete(path); + await watchRun(path); }); }