This PR should allow nested .webc components via updated glob pattern

Updated the Eleventy WebC plugin configuration to use a recursive glob pattern:
from `./src/_includes/webc/*.webc` to `./src/_includes/webc/**/*.webc`.

This enables the use of nested folders for organizing WebC components, for example
following Atomic Design principles (atoms, molecules, organisms…).
This commit is contained in:
boulangerseb 2025-07-25 10:16:28 +02:00
parent 5c265ec707
commit 9ee24ec254

View file

@ -47,7 +47,7 @@ export default async function (eleventyConfig) {
eleventyConfig.addPlugin(plugins.syntaxHighlight);
eleventyConfig.addPlugin(plugins.webc, {
components: ['./src/_includes/webc/*.webc'],
components: ['./src/_includes/webc/**/*.webc'],
useTransform: true
});