11ty / eleventy-plugin-webc

Adds support for WebC *.webc files to Eleventy
https://www.11ty.dev/docs/languages/webc/
119 stars 10 forks source link

Allow passing an array of globs to the `components` config property #58

Closed solution-loisir closed 1 year ago

solution-loisir commented 1 year ago

This would be to allow passing third party components globally to no-import. For example :

module.exports = function(config) {
  config.addPlugin(require("@11ty/eleventy-plugin-webc"), {
    components: [
      "src/_components/**/*.webc",
      "./node_modules/@11ty/eleventy-plugin-syntaxhighlight/syntax-highlight.webc"
    ]
  });
} 
solution-loisir commented 1 year ago

It appears to have been implemented to v0.9.3! Thanks!