ESBuild plugin to minify HTML syntax in JavaScript tagged-template literals, wrapping the `minify-html-literals` library. Version 3.0.0, peer dependency on esbuild >=0.16.17 || ^0.25.0, ships TypeScript types. Key differentiator: specifically designed for Lit, hybrids, FAST, htm, etc., enabling production builds with minified template literals reducing bundle size.
npm install esbuild-plugin-minify-html-literalsVerified import paths — ran on the pinned version, not inferred.
Shows ESBuild build with the plugin to minify HTML tagged templates in production bundles.
Use `minifyHTMLLiteralsPlugin({ filter: /\.html$/ })` or adjust regex.Switch to ESM imports or use dynamic import().
Install esbuild >=0.16.17 or ^0.25.0.
Change to import statement or use dynamic import().
Use named import: import { minifyHTMLLiteralsPlugin } from 'esbuild-plugin-minify-html-literals'Run npm install esbuild-plugin-minify-html-literals and check import statement.
No dependency data recorded yet.