{"id":29138733,"url":"https://github.com/mentaljam/rollup-plugin-html2","last_synced_at":"2025-07-31T13:15:06.452Z","repository":{"id":46959528,"uuid":"188120484","full_name":"mentaljam/rollup-plugin-html2","owner":"mentaljam","description":"Rollup plugin to inject bundled files to an HTML template","archived":false,"fork":false,"pushed_at":"2023-10-05T03:26:13.000Z","size":497,"stargazers_count":20,"open_issues_count":7,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-13T15:55:21.836Z","etag":null,"topics":["html","plugin","rollup"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/rollup-plugin-html2","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mentaljam.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-05-22T22:11:26.000Z","updated_at":"2024-03-22T06:52:32.000Z","dependencies_parsed_at":"2024-06-18T17:09:26.408Z","dependency_job_id":"d7fed059-de81-4218-b873-7f897a0bd83b","html_url":"https://github.com/mentaljam/rollup-plugin-html2","commit_stats":{"total_commits":81,"total_committers":4,"mean_commits":20.25,"dds":"0.14814814814814814","last_synced_commit":"302a5d90ed8fcbb8c42729b1a4826ceb329deb2f"},"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/mentaljam/rollup-plugin-html2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mentaljam%2Frollup-plugin-html2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mentaljam%2Frollup-plugin-html2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mentaljam%2Frollup-plugin-html2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mentaljam%2Frollup-plugin-html2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mentaljam","download_url":"https://codeload.github.com/mentaljam/rollup-plugin-html2/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mentaljam%2Frollup-plugin-html2/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262788745,"owners_count":23364399,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["html","plugin","rollup"],"created_at":"2025-06-30T14:11:09.282Z","updated_at":"2025-06-30T14:11:20.556Z","avatar_url":"https://github.com/mentaljam.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rollup-plugin-html2\n\n[Rollup](https://github.com/rollup/rollup) plugin to inject bundled files to an HTML template.\n\nThis plugin was inspired by the\n[html-webpack-plugin](https://webpack.js.org/plugins/html-webpack-plugin) and\n[rollup-plugin-bundle-html](https://github.com/haifeng2013/rollup-plugin-bundle-html).\n\n`rollup-plugin-html2` doesn't list the output directory but gets entries from the\nresulting bundle. Also it emits resulting HTML file as an asset so it could be accessed by other plugins.\n\nThe plugin can be used alongside the [rollup-plugin-favicons](https://github.com/mentaljam/rollup-plugin-favicons).\nIn this case `rollup-plugin-favicons` should be placed before `rollup-plugin-html2`\nin the plugin list.\n\n## Install\n\n```sh\nnpm i -D rollup-plugin-html2\n```\n\n## Usage\n\n```js\n// rollup.config.js\n\nimport html2 from 'rollup-plugin-html2'\n\n\nexport default {\n  input: 'index.js',\n  output: {\n    dir: 'dist',\n    format: 'es',\n  },\n  plugins: [\n    html2({\n      template: 'index.html',\n    }),\n  ],\n}\n```\n\n## Options\n\nRead the [documentation](https://mentaljam.github.io/rollup-plugin-html2/interfaces/ipluginoptions.html).\n\n## License\n\n[MIT](LICENSE) © [Petr Tsymbarovich](mailto:petr@tsymbarovich.ru)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmentaljam%2Frollup-plugin-html2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmentaljam%2Frollup-plugin-html2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmentaljam%2Frollup-plugin-html2/lists"}