{"library":"rollup-plugin-html-scaffold","title":"rollup-plugin-html-scaffold","description":"Rollup plugin for generating HTML files from templates with placeholder injection. Current stable version: 0.2.0. Low release cadence (last release Feb 2019). Replaces simple HTML template processing within Rollup builds, allowing dynamic substitution of placeholders like <%= appName %>. Compared to alternatives like @rollup/plugin-html or html-webpack-plugin, this plugin offers minimalistic template support without additional features like asset hashing or minification. Requires Rollup >=1.1.2.","language":"javascript","status":"active","last_verified":"Mon Apr 27","install":{"commands":["npm install rollup-plugin-html-scaffold"],"cli":null},"imports":["import html from 'rollup-plugin-html-scaffold'","const html = require('rollup-plugin-html-scaffold').default","import type { HtmlOptions } from 'rollup-plugin-html-scaffold'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"// rollup.config.js\nimport html from 'rollup-plugin-html-scaffold';\nimport { defineConfig } from 'rollup';\n\nexport default defineConfig({\n  input: 'src/index.js',\n  output: {\n    dir: 'dist',\n    format: 'es',\n  },\n  plugins: [\n    html({\n      input: 'src/index.html',\n      output: 'dist/index.html',\n      template: {\n        'title': 'My App',\n        'bundle': 'bundle.js',\n      },\n    }),\n  ],\n});\n\n// src/index.html\n<!doctype html><html><head><title><%= title %></title></head><body><script src=\"<%= bundle %>\"></script></body></html>","lang":"javascript","description":"Shows typical usage: importing the plugin, configuring template placeholders, and generating an HTML file from a template with Rollup build.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}