Hello,
I'm trying to use Netlify CMS on my site, so I added a addPassthroughCopy to my .eleventy.js file. This is related to the new 452 directory remapping feature.
src/admin/config.yml is copied as {outputDir}/admin/config.yml with:
0.8.3: eleventyConfig.addPassthroughCopy("src/admin/config.yml");
0.9.0-beta2: eleventyConfig.addPassthroughCopy({"src/admin/config.yml": true});
src/admin/config.yml is copied as {outputDir}/src/admin/config.yml with:
0.9.0-beta2: eleventyConfig.addPassthroughCopy("src/admin/config.yml");
I think the backward compatibility is broken in this beta, isn't it?
I鈥檓 seeing the same issue; the former syntax for addPassthroughCopy no longer works; I had to update it to use the new object syntax with true value for this to work as it did before.
In addition, I believe the documentation for v0.9.0 will need to be updated to reflect that additional functionality provided by addPassthroughCopy.
This will ship with 0.9.0-beta.3鈥攑lease follow up and retest鈥攖hank you!
(Docs work ongoing)
Docs are up at https://www.11ty.io/docs/copy/#using-globs and https://www.11ty.io/docs/copy/#change-the-output-directory
Also 0.9.0-beta.3 is out for testing if y鈥檃ll can please retest to confirm we got this right I would really appreciate it: npm install @11ty/eleventy@beta --save-dev
Thanks @zachleat, reverting my changes to use the previous syntax, and everything works as expected. Thanks for the fix, and the new docs 馃憤馃徎
I also reverted to the legacy syntax and it all works well now. Thanks a lot! 馃
Great, thank you! Closing.