I'm trying to set up a system where project/src compiles to project/dist, with the idea of using Gulp to supplement Eleventy for things like compiling Sass and optimizing images. Dist will serve as the directory used to serve the site from GitHub pages.
Right now a .eleventyignore file that contains img/ won't prevent Eleventy from copying the contents of src to dist. I've tried placing .eleventyignore in project root and also src, as well as different globbing instructions, but nothing really seems to do the trick.
Help me, Obi Wan, you're my only hope!
I鈥檓 _guessing_ this is a byproduct of #229. What鈥檚 the full path to your .eleventyignore file and img directory?
If your repo is open source, can you share the url to it?
Thanks for taking a look! Our setup is on this branch: https://github.com/a11yproject/a11yproject.com/tree/2019-redesign/develop
.eleventyignore is on the project root here.
Ah yes this is definitely a duplicate of #229. Sorry about that! It鈥檚 fixed in the upcoming 0.7.0. An .eleventyignore file in src should do what you want though. Just make sure the entries in the file don鈥檛 include the src folder. As always the debug output should let you know more information about ignores https://www.11ty.io/docs/debugging/
I鈥檓 going to log this as a duplicate for now, please retest after 0.7.0 and confirm that it鈥檚 working (unless you use the workaround noted above).
Thank you!
Great, thank you!
I just upgraded to 0.7.1 and am still experiencing the issue.
Edit for clarification: Tried both root and src/ directories again, using folder ignores and globs for everything (img/**/*). Also wiped away node_modules/ and reinstalled.
I think this is operating how it鈥檚 intended after 0.7.0+:

However, those two directories are specified as passthroughCopy directories in your .eleventy.js:

Your .eleventy.js:

passthroughCopy paths override .eleventyignore entries, which I think is what we want to happen? If someone disagrees with that let me know!
Ohmygod, I'm a dummy. This worked like a charm, thank you!
Most helpful comment
I think this is operating how it鈥檚 intended after 0.7.0+:
However, those two directories are specified as
passthroughCopydirectories in your.eleventy.js:Your
.eleventy.js:passthroughCopypaths override.eleventyignoreentries, which I think is what we want to happen? If someone disagrees with that let me know!