Eleventy WebC v0.9.2: Asset Bucketing, Anywhere
- Adds support for an Array (of files or globs) to be passed in via the
componentsoption. - Adds support for
npm:prefixes incomponentsoption.
For example:
eleventyConfig.addPlugin(pluginWebc, {
components: [
"./_components/**/*.webc",
"npm:@11ty/is-land/*.webc",
"npm:@11ty/eleventy-plugin-syntaxhighlight/*.webc",
],
});Full Changelog: v0.9.1...v0.9.2
Using WebC v0.9.1
- Adds support for
webc:bucketon any tag and it will cascade to all child content (with automatic hoisting when necessary) 11ty/webc#122 - Adds support for
webc:bucketto be dynamic (e.g.:webc:bucket="myJavaScriptData") 11ty/webc#120 - Adds support for globs when passing an Array to
WebC.getComponentsMap()11ty/webc#123 - Adds
npm:aliasing support toWebC.getComponentsMap()11ty/webc#123