Skip to content

Eleventy WebC v0.9.2: Asset Bucketing, Anywhere

Compare
Choose a tag to compare
@zachleat zachleat released this 02 Mar 23:28
· 21 commits to main since this release
  • Adds support for an Array (of files or globs) to be passed in via the components option.
  • Adds support for npm: prefixes in components option.

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

WebC v0.9.1 release notes:

  • Adds support for webc:bucket on any tag and it will cascade to all child content (with automatic hoisting when necessary) 11ty/webc#122
  • Adds support for webc:bucket to 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 to WebC.getComponentsMap() 11ty/webc#123