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

Skip bundling within excluded files #93

Open darekkay opened 8 months ago

darekkay commented 8 months ago

Excluded files (permalink: false) won't be rendered, hence bundling of CSS/JS resources is not required. This change not only improves the build performance, it fixes a bug where "renderFile" with WebC fails for excluded files (e.g. drafts).

Here's the high-level flow of what is happening:

I have added a new test to verify the problem. Revert the code change that I did to see the test failing.

Fixes: #59