11ty / eleventy

A simpler site generator. Transforms a directory of templates (of varying types) into HTML.
https://www.11ty.dev/
MIT License
17.02k stars 492 forks source link

Error messaging when passthrough copy and templates attempt to write to the same place #2794

Open zachleat opened 1 year ago

zachleat commented 1 year ago

We do have error messages for conflicting template output and conflicting passthrough copy targets, but do we have an error message when a permalink and passthrough copy both attempt to write to the same spot?

Inspired by #2761.

zachleat commented 1 year ago

Related: #2174 #562

NiceOkay commented 1 year ago

Hi @zachleat. I have error message when i use addPassthroughCopy whit the same output dir and option setServerPassthroughCopyBehavior('passthrough')

eleventyConfig.addPassthroughCopy({ 'src/assets': '/', 'src/components/elements/card/assets': '/', }); eleventyConfig.setServerPassthroughCopyBehavior('passthrough');

Error:

Снимок экрана 2023-06-19 в 20 57 44