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

Modifying webc components does not cause a site rebuild #62

Closed mvllow closed 1 year ago

mvllow commented 1 year ago

I was converting an 11ty site from njk to webc in several places and noticed when editing webc components, the site was not rebuilt. My personal project was using ./content as the input directory and a custom ./content/_components/**/*.webc components directory. A minimal reproduction repo is included with the same issue happening using the default config. Apologies if I missed anything. Thanks!

Reproduction

https://github.com/mvllow/11ty-webc-no-rebuild-repro

  1. Install dependencies and run development server
    npm install && npm run dev
  2. Modify _components/my-header.webc
  3. Changes will not be applied until manually restarting the server
janmonschke commented 1 year ago

A bugfix for this will be shipped with 2.0.2. Check out this related issue in the eleventy repo: https://github.com/11ty/eleventy/issues/2903

zachleat commented 1 year ago

Thanks @janmonschke—please follow along at https://github.com/11ty/eleventy/issues/2903!