JavaScript ISC

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".

W

webdiscus

Dernière activité 1 juin 2026
webdiscus/html-bundler-webpack-plugin

203

étoiles

34

forks

8

issues ouvertes

bundlercssejsentryfaviconhandlebarshtmlintegrityjavascriptloadermarkdownnunjuckspreloadscssstyletemplatetwigwebpack

Ce README est souvent en anglais.

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

Projets similaires

Simplifies creation of HTML files to serve your webpack bundles

JavaScripthtml-webpack-pluginwebpack
Jjantimon
10,7 k étoiles1,3 k

A simpler site generator. Transforms a directory of templates (of varying types) into HTML.

JavaScriptblog-enginedocumentation-tooleleventy
111ty
19,9 k étoiles590

Pug – robust, elegant, feature rich template engine for Node.js

JavaScript
Ppugjs
21,8 k étoiles1,9 k