-
-
Notifications
You must be signed in to change notification settings - Fork 556
Closed
Labels
bug: --serve restartChanges to projects shouldn’t need to restart dev serverChanges to projects shouldn’t need to restart dev serverconverted-to-discussionfeature: 🥝 incremental buildsfeature: 🪢 render pluginThe Render pluginThe Render plugin
Description
Operating system
Linux - Ubuntu
Eleventy
3.0.0 and v3.0.1-alpha.5
Describe the bug
I have a main-button web component with the webc:scoped attribute.
I use this component from two places. 1) index.html, 2) base.liquid.
The HTML one is rendered with:
htmlTemplateEngine: "webc",
The Liquid one is rendered with:
{% renderTemplate "webc" %}
<main-button>Liquid (base.liquid)</main-button>
{% endrenderTemplate %}
The stylesheet is loaded with:
<link rel="stylesheet" href={% getBundleFileUrl 'css' %}Issue
- A style change in the WebC bundled style is correctly refreshed for the one used in the liquid template.
- The component used from HTML directly does not reload correctly. It is necessary to re-run
eleventy --servefor it to take effect.
In the video you can see the exact behavior. Note that the class for the component used in the index.html is not updated.
two classes seem to be present in the generated CSS bundle, until a eleventy --serve is ran from scratch.
2025-03-15.21-13-01.mp4
Reproduction steps
No response
Expected behavior
Both instances of my button should have the up to date styles without re-running eleventy --serve.
Reproduction URL
No response
Screenshots
No response
Metadata
Metadata
Assignees
Labels
bug: --serve restartChanges to projects shouldn’t need to restart dev serverChanges to projects shouldn’t need to restart dev serverconverted-to-discussionfeature: 🥝 incremental buildsfeature: 🪢 render pluginThe Render pluginThe Render plugin