{"library":"rollup-plugin-html","title":"rollup-plugin-html","description":"A Rollup plugin that imports HTML files as JavaScript string variables. Version 0.2.1 is the latest stable release, though the project appears to be in maintenance mode with no recent updates. It uses rollup-pluginutils for file filtering and integrates with html-minifier for optional minification. Differentiators: simple API, support for include/exclude glob patterns, and opt-in HTML minification via html-minifier options. Alternatives like @rollup/plugin-html or vite-plugin-html offer more features.","language":"javascript","status":"maintenance","last_verified":"Mon Apr 27","install":{"commands":["npm install rollup-plugin-html"],"cli":null},"imports":["import html from 'rollup-plugin-html'","import html from 'rollup-plugin-html'","const html = require('rollup-plugin-html');"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"// rollup.config.js\nimport html from 'rollup-plugin-html';\n\nexport default {\n  input: 'src/main.js',\n  output: {\n    file: 'dist/bundle.js',\n    format: 'iife'\n  },\n  plugins: [\n    html({\n      include: '**/*.html',\n      exclude: '**/excluded.html',\n      htmlMinifierOptions: {\n        collapseWhitespace: true\n      }\n    })\n  ]\n};\n\n// main.js\nimport template from './template.html';\ndocument.body.innerHTML = template;","lang":"javascript","description":"Shows how to configure rollup-plugin-html in a rollup config and import an HTML file as a string.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}