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

Add `debug()` statements for `*.webc` files #61

Open Zearin opened 1 year ago

Zearin commented 1 year ago

I’m brand new to WebC, and I just tested out whether I could get it to work in an existing project. I was able to get it to work with enough tinkering, but for a while I wasn’t sure if my setup was working.

Along the way I tried using DEBUG=Eleventy:WebC to see if I could get any useful output. I didn’t see anything to confirm whether my setup was having the correct effect.

It would be nice if when I do the following:

eleventyConfig.addPlugin(pluginWebc, {
        components: [
            "./_src/_includes/**/*.webc"
        ]
    })

...that a debug message would tell me that the plugin detected the *.webc files. :)

Zearin commented 1 year ago

I have another request for WebC-related debug().

For each *.webc file, note whether it is being processed: