{"library":"babel-plugin-template-html-minifier","type":"library","category":null,"description":"A Babel plugin that minifies HTML in tagged template strings using html-minifier-terser. Current stable version: 4.1.0. It supports popular libraries like lit-html, lit-element, choo, and hyperHTML. The plugin integrates directly into the Babel pipeline, allowing compile-time minification without runtime overhead. It offers configurable html-minifier options and strict CSS validation mode. Unlike runtime minifiers, this plugin performs minification during build, reducing bundle size and improving performance. It requires Node >=10.13.0.","language":"javascript","status":"active","version":"4.1.0","tags":["javascript","babel","lit-html","choo","html-minifier","hyperhtml"],"last_verified":"Fri May 01","install":[{"cmd":"npm install babel-plugin-template-html-minifier","imports":["// In .babelrc or babel.config.js:\n{\n  \"plugins\": [\n    [\"template-html-minifier\", { \"modules\": { \"lit-html\": [\"html\"] } }]\n  ]\n}","import plugin from 'babel-plugin-template-html-minifier';\n// passes options as second argument to Babel transform","// No TypeScript types are bundled; use @types/babel__core for plugin typings"]},{"cmd":"yarn add babel-plugin-template-html-minifier","imports":[]},{"cmd":"pnpm add babel-plugin-template-html-minifier","imports":[]}],"homepage":null,"github":"https://github.com/cfware/babel-plugin-template-html-minifier","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/babel-plugin-template-html-minifier","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}