Use HTML files as entry points in Rollup bundles (v0.3.0, last release 2018-04-06, maintenance mode). Traverses HTML files and HTML imports, combining all scripts found, with optional output of HTML files stripped of <script> tags. Similar to rollup-plugin-multi-entry but for HTML-based entry. Requires Rollup >=0.48.0. Not actively maintained; consider alternatives.
npm install rollup-plugin-html-entryVerified import paths — ran on the pinned version, not inferred.
Rollup configuration using rollup-plugin-html-entry with include/exclude/external globs, output dir for cleaned HTML, and exports:false.
Consider alternatives like @web/rollup-plugin-html or custom HTML processing.
Use ES modules or importmap instead of HTML imports.
Use Rollup 0.48-0.68 or migrate to a modern rollup-html plugin.
Place all script code in separate files or inline within <script> tags (no module type).
Check input glob pattern. Use absolute paths or relative from project root. Example: input: 'src/**/index.html'
Use default import: import htmlEntry from 'rollup-plugin-html-entry';