This content originally appeared on Bram.us and was authored by Bramus!
The Lit team is pleased to announce an experimental preview release of @lit-labs/eleventy-plugin-lit, a new plugin for Eleventy that renders your Lit components as static HTML during your Eleventy build, and lets you hydrate them after your JavaScript loads.
This is pretty nice, as out comes Declarative Shadow DOM-compatible which Chromium-based browsers can render, while awaiting rehydration. The heavy lifting is done by @lit-labs/ssr
, so you can most likely find package for frameworks other than 11ty out there.
Eleventy + Lit Announcement Post →@lit-labs/eleventy-plugin-lit
(GitHub) →
This content originally appeared on Bram.us and was authored by Bramus!
Bramus! | Sciencx (2022-03-06T17:28:44+00:00) Eleventy plugin for static rendering of Lit components. Retrieved from https://www.scien.cx/2022/03/06/eleventy-plugin-for-static-rendering-of-lit-components/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.