{"library":"rollup-plugin-html2","title":"rollup-plugin-html2","description":"Rollup plugin to inject bundled JavaScript/CSS files into an HTML template. Current stable version is 4.0.0. It reads output from Rollup's bundle rather than scanning the file system, and emits the HTML as an asset for other plugins to use. Supports customization via template, filename, title, meta tags, and asset injection order. Requires Rollup >=3.0 and has an optional peer dependency on html-minifier. Licensed under MIT.","language":"javascript","status":"active","last_verified":"Mon Apr 27","install":{"commands":["npm install rollup-plugin-html2"],"cli":null},"imports":["import html2 from 'rollup-plugin-html2'","const html2 = require('rollup-plugin-html2')","import type { PluginOptions } from 'rollup-plugin-html2'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import html2 from 'rollup-plugin-html2';\n\nexport default {\n  input: 'src/index.js',\n  output: {\n    dir: 'dist',\n    format: 'es',\n  },\n  plugins: [\n    html2({\n      template: 'src/template.html',\n      filename: 'index.html',\n      title: 'My App',\n    }),\n  ],\n};","lang":"javascript","description":"Shows basic integration: import the default export and use it in a Rollup config with a custom template and output filename.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}