Allow multiple input targets (comma separated globs, array of inputs) (👍44) #3996
Replies: 6 comments
This comment has been hidden.
This comment has been hidden.
|
Throwing another possible option to the mix, this would allow for good flexibility. module.exports = function(eleventyConfig) {
return {
dir: {
input: function() {
const directories = aFunctionToReturnInputPathsBasedOnAConfigFile();
return directories;
},
output: "public"
}
};
};In my opinion one of: arrays, globs, a function and a string would be the best approach for the most flexible input |
|
I've just come here looking for similar. I was looking to explore splitting my current |
|
I wanted to have |
|
Hey! I would like to use same feature to split blog posts and 11ty app to diff monorepo packages like: root
packages
app // 11ty app
content
posts
2025-05-20-test.md
2025-05-21-test-2.mdUPDATE NOTES: if someone faces the same problem, I solved it through coping posts from content package to app with See example in my blog: https://github.com/noveogroup-amorgunov/amorgunov.com/blob/master/packages/app/package.json#L15 |
Uh oh!
There was an error while loading. Please reload this page.
It would be nice to have a feature to pass multiple elements (directories, files, globs) to the
dir.inputoption, such as:because something like this doesn't work:
All reactions