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:
parent
5c265ec707
commit
9ee24ec254
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue