Change default node_modules
ignores
#2436
Labels
breaking-change
This will have to be included with a major version as it breaks backwards compatibility.
bug
feature: 🪞 ignores
Ignores, via configuration API or .eleventyignore or .gitignore etc
Milestone
The
eleventy-base-blog
build fails after you add a Netlify plugin. Here’s some build log output from the eleventy-base-blog project but would likely be the similar for any Eleventy 0.x, 1.x, or 2.x project:Note that it attempts to process content in
.netlify/plugins/node_modules/
Workaround
Workaround is to add
.netlify
to either the.gitignore
,.eleventyignore
, or in the configuration API method: https://www.11ty.dev/docs/ignores/#configuration-apiDefaults change discussion
Taking it one step further, my personal thought is that it might be better to change the Eleventy default ignore from
node_modules/**
to**/node_modules/**
. Or in addition to? (note the delete snippet recommendation on https://www.11ty.dev/docs/ignores/#node_modules)Thoughts?
Reported by @samkap!
The text was updated successfully, but these errors were encountered: