From 9ee24ec2542a2e15028e9b31971d6ab97c72cb7e Mon Sep 17 00:00:00 2001 From: boulangerseb Date: Fri, 25 Jul 2025 10:16:28 +0200 Subject: [PATCH] This PR should allow nested .webc components via updated glob pattern MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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…). --- eleventy.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eleventy.config.js b/eleventy.config.js index d4886a9..7a54133 100644 --- a/eleventy.config.js +++ b/eleventy.config.js @@ -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 });