Eleventy plugin for static rendering of Lit components

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) →

Published by Bramus!

Bramus is a frontend web developer from Belgium. From the moment he discovered view-source at the age of 14 (way back in 1997), he fell in love with the web and has been tinkering with it ever since (more …)

Leave a comment

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.