esbuild-plugin-lit-css

JSON →
library 4.1.1 ·javascript
verified May 1, 2026

An esbuild plugin that allows importing CSS files as JavaScript tagged template literal objects, primarily for use with LitElement and similar libraries. Version 4.1.1 requires esbuild >=0.16.17 || ^0.25.0 and lit ^2.7.2 || ^3.0.0. It supports CSS preprocessing via a transform function, optional cssnano minification, and an inline mode that embeds CSS directly into JS/TS modules (at a performance cost). The plugin is part of the @pwrs/lit-css ecosystem, with parallel packages for rollup, Vite, webpack, TypeScript, and Parcel. Unlike alternatives that require separate build steps, this integrates directly into esbuild's build pipeline, making it seamless for Lit component development. It ships TypeScript types and is actively maintained with regular updates.

total hits 8
actors 3 distinct systems
last hit 4d ago AhrefsBot
GPTBot
2
Search engines
1
Humans
2

top countries 🇨🇦 Canada · 🇺🇸 United States · 🇧🇷 Brazil