Open NathanBowers opened 1 year ago
When adding a new image to a project Eleventy dev server has to be restarted for the new image to be served.
.addPassthroughCopy("src/img/**/*.{png,gif,jpg,jpeg,pdf,svg,webp}");
eleventy.js
--incremental
Reproduce:
<img>
Successfully reproduced when using eleventyConfig.setServerPassthroughCopyBehavior("passthrough");
eleventyConfig.setServerPassthroughCopyBehavior("passthrough");
Works as expected with default behavior (eleventyConfig.setServerPassthroughCopyBehavior("copy");)
eleventyConfig.setServerPassthroughCopyBehavior("copy");
When adding a new image to a project Eleventy dev server has to be restarted for the new image to be served.
.addPassthroughCopy("src/img/**/*.{png,gif,jpg,jpeg,pdf,svg,webp}");
ineleventy.js
--incremental
and it didn't help.Reproduce:
<img>
element referencing one of the images in your project<img>
in web browser<img>
element to your html template referencing your newly added image file