webdiscus/html-bundler-webpack-plugin

Build websites with easy. HTML as Entry Point. Supports Markdown, Eta, EJS, Handlebars, Nunjucks, Pug, Twig templates "out of the box".

203

stars

356

commits

JavaScript

primary language

Jun 1, 2026

updated

bundler
css
ejs
entry
favicon
handlebars
html
integrity
javascript
loader
markdown
nunjucks
preload
scss
style
template
twig
webpack
Browse cluster: Web markup formatting and beautification

README

HTML Bundler Plugin for Webpack
All-in-one Web Bundler

npm node node Test codecov node

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.

Install

npm install html-bundler-webpack-plugin --save-dev

What does the HTML Bundler do?

  • 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 integrity attributes 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.

Documentation

For full documentation, visit HTML Bundler Docs.

Read it

Support & Appreciation

If this plugin helps you, consider giving it a ⭐ to show your support!

Sponsors & Patrons

Thank you to all our sponsors and patrons!

JetBrains Sentry StackAid Marcel Robitaille Gregor Dschung daltonboll

Contributors

webdiscus

336 commits

vralle

6 commits

pirang

3 commits

Poliklot

3 commits

webdiscus/html-bundler-webpack-plugin

Build websites with easy. HTML as Entry Point. Supports Markdown, Eta, EJS, Handlebars, Nunjucks, Pug, Twig templates "out of the box".

203

stars

356

commits

JavaScript

primary language

Jun 1, 2026

updated

bundler
css
ejs
entry
favicon
handlebars
html
integrity
javascript
loader
markdown
nunjucks
preload
scss
style
template
twig
webpack
Browse cluster: Web markup formatting and beautification

README

HTML Bundler Plugin for Webpack
All-in-one Web Bundler

npm node node Test codecov node

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.

Install

npm install html-bundler-webpack-plugin --save-dev

What does the HTML Bundler do?

  • 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 integrity attributes 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.

Documentation

For full documentation, visit HTML Bundler Docs.

Read it

Support & Appreciation

If this plugin helps you, consider giving it a ⭐ to show your support!

Sponsors & Patrons

Thank you to all our sponsors and patrons!

JetBrains Sentry StackAid Marcel Robitaille Gregor Dschung daltonboll

Contributors

webdiscus

336 commits

vralle

6 commits

pirang

3 commits

Poliklot

3 commits

Languages

JavaScript

63.3%

HTML

27.9%

CSS

3.1%

Pug

2.1%

SCSS

1.7%

Handlebars

1.3%