Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork21
Build websites with easy. HTML as Entry Point. Supports Markdown, Eta, EJS, Handlebars, Nunjucks, Pug, Twig templates "out of the box".
License
webdiscus/html-bundler-webpack-plugin
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation

HTML Bundler Plugin for Webpack
All-in-one Web Bundler
The plugin automates the creation of complete web pages by processing HTML templates with linked assets.It resolves dependencies, compiles templates, and ensures that the output HTML contains correct output URLs.
npm install html-bundler-webpack-plugin --save-dev
- Treats HTML as an entry point: Initiates the build process from HTML, allowing direct inclusion of source asset files like scripts and styles.
- Processes HTML templates: Supports various template engines such as EJS, Handlebars, Nunjucks, Pug, and more.
- Handles dependencies: Resolves source files referenced in HTML, such as SCSS, JS, images, updating their references with correct output URLs.
- Inlines resources: Provides options to inline JavaScript, CSS, and images.
- Generates preload tags: Creates
<link rel="preload">tags for assets to enhance resource loading. - Generates integrity attributes: Adds
integrityattributes to<link>and<script>tags to ensure resource integrity and security. - Generates favicons: Creates favicons of various sizes for different platforms and injects them into the HTML.
For full documentation, visitHTML Bundler Docs.
- Why do developers migrate from Webpack?
- Use a HTML file as an entry point? (Webpack issue, #536)
- Using HTML Bundler Plugin for Webpack to generate HTML files
- Keep output directory structure in Webpack
- Auto generate an integrity hash for
linkandscripttags
If this plugin helps you, consider giving it a ⭐ to show your support!Thank you to all our sponsors and patrons!
About
Build websites with easy. HTML as Entry Point. Supports Markdown, Eta, EJS, Handlebars, Nunjucks, Pug, Twig templates "out of the box".
Topics
Resources
License
Code of conduct
Contributing
Security policy
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Sponsor this project
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Contributors11
Uh oh!
There was an error while loading.Please reload this page.

