{"library":"rollup-plugin-html-minifier","title":"rollup-plugin-html-minifier","description":"Rollup plugin that minifies HTML files in the bundle using html-minifier. Current stable version: 2.0.0. Release cadence: low, with infrequent updates. Key differentiators: simple integration with Rollup, supports glob patterns for inclusion/exclusion, and exposes all html-minifier options. Alternative plugins like @rollup/plugin-html focus on HTML generation rather than minification. Note that most html-minifier options are disabled by default, requiring explicit configuration for actual minification.","language":"javascript","status":"active","last_verified":"Mon Apr 27","install":{"commands":["npm install rollup-plugin-html-minifier"],"cli":null},"imports":["import htmlMinifier from 'rollup-plugin-html-minifier'","import type { PluginOptions } from 'rollup-plugin-html-minifier'","import htmlMinifier from 'rollup-plugin-html-minifier'; htmlMinifier({ include: '*.html', options: { removeComments: true } })"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"// rollup.config.js\nimport htmlMinifier from 'rollup-plugin-html-minifier';\n\nexport default {\n  input: 'src/index.js',\n  output: {\n    dir: 'dist',\n    format: 'esm',\n  },\n  plugins: [\n    htmlMinifier({\n      include: '*.html',\n      options: {\n        removeComments: true,\n        collapseWhitespace: true,\n        removeAttributeQuotes: true,\n        minifyJS: true,\n        minifyCSS: true,\n      },\n    }),\n  ],\n};","lang":"typescript","description":"Minifies all HTML files matched by the glob pattern, enabling several html-minifier options for effective compression.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}