Nested subfolder .eleventyignore files #4085
Replies: 5 comments
-
|
Could you implement a plugin that adds the appropriate directories to |
Beta Was this translation helpful? Give feedback.
-
|
+1 for this a /themes/[themename]/.eleventyignore but then the theme during eleventy --serve only runs once and dont pick up changes |
Beta Was this translation helpful? Give feedback.
-
|
just dipping in here to say @mortendk you can use the |
Beta Was this translation helpful? Give feedback.
-
|
@zachleat cool learning new every day |
Beta Was this translation helpful? Give feedback.
-
|
I do think the programmatic API for ignores is the way forward here but I will add this one to the enhancement queue if folks want to upvote it! https://www.11ty.dev/docs/ignores/#configuration-api
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Is your feature request related to a problem? Please describe.
It would be great if there could be an
.eleventyignoreread in all processed folders to see what needs ignoring in that folder (recursive)We're currently trying to modularise and theme eleventy to make it a much easier developer friendly way to add themes/modules to the platform - simply by cloning a theme / module in to a directory.
The trouble at the moment is that in its non modular state all partials / layouts are processed and turned in to files. Obviously to get round this we've added the path to the .eleventyignore file in the project root but this isn't ideal as it would mean editing this file every time a module / theme is added to a project.
Describe the solution you'd like
A much better solution would be for themes/modules etc to be able to manage their own (opinionated)
.eleventyignorefile inside the root folder for the module / theme ....Describe alternatives you've considered
Currently we're editing the ignore file in the root of the project, however, as mentioned this is less than ideal. I suppose another way would be to rename the files to something that eleventy doens't support such as
file.njk.incor something but this feels hacky and could break easily in the future if eleventy were to suddenly start supporting !Beta Was this translation helpful? Give feedback.
All reactions