{"id":14967807,"url":"https://github.com/webdiscus/html-bundler-webpack-plugin","last_synced_at":"2025-05-15T20:05:48.413Z","repository":{"id":65184964,"uuid":"586084001","full_name":"webdiscus/html-bundler-webpack-plugin","owner":"webdiscus","description":"Build websites with easy. HTML as Entry Point. Supports Markdown, Eta, EJS, Handlebars, Nunjucks, Pug, Twig templates \"out of the box\".","archived":false,"fork":false,"pushed_at":"2025-04-17T17:08:36.000Z","size":63434,"stargazers_count":171,"open_issues_count":5,"forks_count":15,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-05-05T11:48:07.648Z","etag":null,"topics":["bundler","css","ejs","entry","favicon","handlebars","html","integrity","javascript","loader","markdown","nunjucks","preload","scss","style","template","twig","webpack"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/webdiscus.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":null,"patreon":"biodiscus","open_collective":"html-bundler-webpack-plugin","ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2023-01-06T22:36:21.000Z","updated_at":"2025-04-25T11:47:27.000Z","dependencies_parsed_at":"2023-11-24T20:27:40.790Z","dependency_job_id":"2ad41210-00e3-4f7d-9c8e-c59a89836a6d","html_url":"https://github.com/webdiscus/html-bundler-webpack-plugin","commit_stats":{"total_commits":210,"total_committers":7,"mean_commits":30.0,"dds":0.04761904761904767,"last_synced_commit":"165de5537b9b9aba7ab98a2eca23375a4cc0c9d1"},"previous_names":[],"tags_count":29,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdiscus%2Fhtml-bundler-webpack-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdiscus%2Fhtml-bundler-webpack-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdiscus%2Fhtml-bundler-webpack-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdiscus%2Fhtml-bundler-webpack-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/webdiscus","download_url":"https://codeload.github.com/webdiscus/html-bundler-webpack-plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252801155,"owners_count":21806264,"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":["bundler","css","ejs","entry","favicon","handlebars","html","integrity","javascript","loader","markdown","nunjucks","preload","scss","style","template","twig","webpack"],"created_at":"2024-09-24T13:38:38.316Z","updated_at":"2025-05-15T20:05:43.362Z","avatar_url":"https://github.com/webdiscus.png","language":"JavaScript","readme":"\u003ca id=\"top\" name=\"top\"\u003e\u003c/a\u003e\n\n\u003cdiv align=\"center\"\u003e\n    \u003cimg height=\"200\" src=\"images/plugin-logo.png\"\u003e\n    \u003ch1 align=\"center\"\u003e\n        \u003ca href=\"https://github.com/webdiscus/html-bundler-webpack-plugin\"\u003eHTML Bundler Plugin for Webpack\u003c/a\u003e\u003cbr\u003e\n        \u003csub\u003eAll-in-one Web Bundler\u003c/sub\u003e\u003cbr\u003e\n    \u003c/h1\u003e\n\u003c/div\u003e\n\n[![npm](https://img.shields.io/npm/v/html-bundler-webpack-plugin?logo=npm\u0026color=brightgreen 'npm package')](https://www.npmjs.com/package/html-bundler-webpack-plugin 'download npm package')\n[![node](https://img.shields.io/node/v/html-bundler-webpack-plugin)](https://nodejs.org)\n[![node](https://img.shields.io/github/package-json/dependency-version/webdiscus/html-bundler-webpack-plugin/peer/webpack)](https://webpack.js.org)\n[![Test](https://github.com/webdiscus/html-bundler-webpack-plugin/actions/workflows/test.yml/badge.svg)](https://github.com/webdiscus/html-bundler-webpack-plugin/actions/workflows/test.yml)\n[![codecov](https://codecov.io/gh/webdiscus/html-bundler-webpack-plugin/branch/master/graph/badge.svg?token=Q6YMEN536M)](https://codecov.io/gh/webdiscus/html-bundler-webpack-plugin)\n[![node](https://img.shields.io/npm/dm/html-bundler-webpack-plugin)](https://www.npmjs.com/package/html-bundler-webpack-plugin)\n\n\nThe plugin automates the creation of complete web pages by processing HTML templates with linked assets.\nIt resolves  dependencies, compiles templates, and ensures that the output HTML contains correct output URLs.\n\n## Install\n\n```bash\nnpm install html-bundler-webpack-plugin --save-dev\n```\n\n## What does the HTML Bundler do?\n\n- **Treats HTML as an entry point**: Initiates the build process from HTML, allowing direct inclusion of source asset files like scripts and styles.\n- **Processes HTML templates**: Supports various template engines such as EJS, Handlebars, Nunjucks, Pug, and more.\n- **Handles dependencies**: Resolves source files referenced in HTML, such as SCSS, JS, images, updating their references with correct output URLs.\n- **Inlines resources**: Provides options to inline JavaScript, CSS, and images.\n- **Generates preload tags**: Creates `\u003clink rel=\"preload\"\u003e` tags for assets to enhance resource loading.\n- **Generates integrity attributes**:  Adds `integrity` attributes to `\u003clink\u003e` and `\u003cscript\u003e` tags to ensure resource integrity and security.\n- **Generates favicons**: Creates favicons of various sizes for different platforms and injects them into the HTML.\n\n## Documentation\n\n- [Get Started](https://webdiscus.github.io/html-bundler-webpack-plugin/category/getting-started)\n- [Migrating from `html-webpack-plugin`](https://webdiscus.github.io/html-bundler-webpack-plugin/getting-started/migrating-from-html-webpack-plugin)\n- [Features](https://webdiscus.github.io/html-bundler-webpack-plugin/introduction#key-features)\n- [Options](https://webdiscus.github.io/html-bundler-webpack-plugin/category/options)\n- [Guides](https://webdiscus.github.io/html-bundler-webpack-plugin/guides)\n- [F.A.Q.](https://webdiscus.github.io/html-bundler-webpack-plugin/faq/import-url-in-css)\n\nFor full documentation, visit [HTML Bundler Docs](https://webdiscus.github.io/html-bundler-webpack-plugin).\n\n## Read it\n\n- [Why do developers migrate from Webpack?](https://webdiscus.github.io/html-bundler-webpack-plugin/introduction#why-do-developers-migrate-from-webpack)\n- [Use a HTML file as an entry point?](https://github.com/webpack/webpack/issues/536) (Webpack issue, #536)\n- [Using HTML Bundler Plugin for Webpack to generate HTML files](https://dev.to/webdiscus/using-html-bundler-plugin-for-webpack-to-generate-html-files-30gd)\n- [Keep output directory structure in Webpack](https://dev.to/webdiscus/how-to-keep-the-folder-structure-of-source-templates-in-webpack-for-output-html-files-39bj)\n- [Auto generate an integrity hash for `link` and `script` tags](https://dev.to/webdiscus/webpack-auto-generate-an-integrity-hash-for-link-and-script-tags-in-an-html-template-48p5)\n\n## Support \u0026 Appreciation\n\n```text\nIf this plugin helps you, consider giving it a ⭐ to show your support!\n```\n\n## Sponsors \u0026 Patrons\n\nThank you to all our sponsors and patrons!\n\n\u003ca href=\"https://www.jetbrains.com/\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/878437?s=50\u0026v=4\" title=\"JetBrains\" alt=\"JetBrains\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/getsentry\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/1396951?s=50\u0026v=4\" title=\"Sentry\" alt=\"Sentry\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/stackaid\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/84366591?s=50\u0026v=4\" title=\"StackAid\" alt=\"StackAid\"\u003e\u003c/a\u003e\n\u003ca href=\"https://www.patreon.com/user?u=96645548\"\u003e\u003cimg src=\"https://c10.patreonusercontent.com/4/patreon-media/p/user/96645548/020234154757463b939824efe62db137/eyJ3IjoyMDB9/1.jpeg?token-time=2145916800\u0026token-hash=GYnR3xvy7qBr2w1CihOfDOq87nOr4AbuW0ytvwg7Kgs%3D\" width=\"50\" title=\"Buckley Robinson\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/MarcelRobitaille\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/8503756?s=50\u0026v=4\" title=\"Marcel Robitaille\" alt=\"Marcel Robitaille\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/kannwism\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/18029781?s=50\u0026v=4\" width=\"50\" title=\"Marian Kannwischer (kannwism)\"\u003e\u003c/a\u003e\n\u003ca href=\"https://www.patreon.com/user?u=96645548\"\u003e\u003cimg src=\"https://c10.patreonusercontent.com/4/patreon-media/p/user/43568167/0ef77126597d460c9505bdd0aea2eea9/eyJ3IjoyMDB9/1.png?token-time=2145916800\u0026token-hash=7izh1FZTToAqf4Qks3Qrk8YcNbGymF-sBi0hkK_aJO8%3D\" width=\"50\" title=\"Raymond Ackloo\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/chkpnt\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/1956979?s=50\u0026v=4\" width=\"50\" title=\"Gregor Dschung\" alt=\"Gregor Dschung\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/daltonboll\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/5821829?v=4\" width=\"50\" title=\"Dalton Boll\" alt=\"daltonboll\"\u003e\u003c/a\u003e\n","funding_links":["https://patreon.com/biodiscus","https://opencollective.com/html-bundler-webpack-plugin","https://www.patreon.com/user?u=96645548"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebdiscus%2Fhtml-bundler-webpack-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebdiscus%2Fhtml-bundler-webpack-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebdiscus%2Fhtml-bundler-webpack-plugin/lists"}