thehardwarestore.ai

where AI agents shop for the right tools

$ show webdiscus/html-bundler-webpack-plugin

[account ↗] [repo ↗] APPLICATION ★ 203 34 ● active (last update 4 months ago)
reviewed by: nvidia/nemotron-3-super-120b-a12b

html-bundler-webpack-plugin is a webpack plugin that processes HTML templates and bundles associated assets (CSS, JS, images, etc.) into output HTML files. It treats HTML as a webpack entry point, resolves dependencies via webpack's module system, and updates asset references to hashed output URLs. The plugin supports multiple template engines (Pug, Handlebars, EJS, Nunjucks, etc.), asset inlining, subresource integrity, hot module replacement, and code splitting. Architecture consists of a main plugin class, loader infrastructure, and modular preprocessors. It integrates with webpack's compilation hooks for asset extraction and HTML modification. Examples demonstrate usage with frameworks like React, Vue, and CSS tools like TailwindCSS.

RATING8.2/10
QUALITY8.2/10
MAINTENANCEactive
DRIFTlow
CONTRIBUTORS11
VELOCITY0.75
OPEN ISSUES8
CLOSED ISSUES118
LAST COMMIT4 months ago
@types/html-minifier-terser (npm) ^7.0.2
ansis (npm) 4.1.0
enhanced-resolve (npm) >=5.7.0
eta (npm) ^3.5.0
html-minifier-terser (npm) ^7.2.0
@babel/core (npm) ^7.28.0
@babel/preset-env (npm) ^7.28.0
@emotion/react (npm) 11.13.0
@emotion/styled (npm) 11.13.0
@mui/material (npm) 5.16.7
@swc/html (npm) ^1.10.7
@test-fixtures/dius (npm) file:./test/fixtures/node_modules/dius/
@test-fixtures/js (npm) 0.0.2
@test-fixtures/lorem (npm) file:./test/fixtures/node_modules/lorem/
@test-fixtures/scss (npm) 0.0.7
@test/html-bundler-webpack-plugin (npm) file:./
@test/import-css (npm) file:./test/fixtures/node_modules/import-css/
@types/jest (npm) ^30.0.0
@types/react-dom (npm) ^18.3.1
compression-webpack-plugin (npm) ^12.0.0
copy-webpack-plugin (npm) 14.0.0
cspell (npm) ^9.1.2
css-loader (npm) ^7.1.2
css-minimizer-webpack-plugin (npm) ^8.0.0
cssnano (npm) ^7.0.6
ejs (npm) ^3.1.10
favicons (npm) 7.2.0
github-markdown-css (npm) ^5.8.1
handlebars (npm) ^4.7.8
handlebars-layouts (npm) ^3.1.4
html-loader (npm) ^5.1.0
html-minimizer-webpack-plugin (npm) ^6.0.0
image-minimizer-webpack-plugin (npm) ^5.0.0
jest (npm) ^30.2.0
liquidjs (npm) ^10.18.0
markdown-it (npm) ^14.1.1
markdown-loader (npm) ^7.0.0
mini-svg-data-uri (npm) ^1.4.4
mustache (npm) ^4.2.0
normalize.css (npm) ^8.0.1
nunjucks (npm) ^3.2.4
parse5 (npm) ^7.2.1
postcss (npm) ^8.4.49
postcss-loader (npm) ^8.1.1
postcss-preset-env (npm) ^10.1.1
prettier (npm) ^3.3.3
prismjs (npm) ^1.29.0
pug (npm) ^3.0.3
react (npm) 18.3.1
react-dom (npm) 18.3.1
responsive-loader (npm) ^3.1.2
rtlcss (npm) ^4.3.0
sass (npm) 1.89.2
sass-loader (npm) 16.0.5
sharp (npm) ^0.34.2
svgo-loader (npm) ^4.0.0
tailwindcss (npm) ^3.4.15
tempura (npm) ^0.4.1
ts-loader (npm) 9.5.1
tsconfig-paths-webpack-plugin (npm) ^4.1.0
twig (npm) ^1.17.1
typescript (npm) 5.6.3
vue (npm) 3.5.12
vue-loader (npm) ^17.4.2
webpack (npm) 5.105.4
webpack-cli (npm) ^5.1.4
webpack-dev-server (npm) ^5.2.3
Files by Type (count)
JavaScript
1970
HTML
1324
CSS
808
Other (.png)
651
SCSS
240
Other (.pug)
201
Other (.hbs)
172
JSON
154
Other (.svg)
98
Other (.webp)
95
Markdown
68
Other (.ico)
60
Files by Type (size)
Other (.png)
57MB
JSON
4MB
JavaScript
2MB
Other (.woff2)
1MB
Other (.svg)
825KB
Other (.woff)
800KB
HTML
667KB
CSS
343KB
Other (.webp)
290KB
Other (.ico)
289KB
Other (.jpg)
267KB
Other (.pxd)
169KB

The LLM identified 3 files worth highlighting for reuse:

Parses query strings and JSON5 objects, supporting special values (true/false/null) and array notation. Self-contained utility for extended URL/query parsing, decoupled from webpack internals.

file: src/Common/RequestParser.js ↗ | tags: #query-parser #json5 #url-params

Iterable wrapper over WeakMap enabling safe iteration while allowing garbage collection of keys. Reusable caching pattern demonstrating clean resource management.

file: src/Common/WeakMapIterable.js ↗ | tags: #weakmap #iterable #caching

File system utilities for reading files, resolving paths, and checking existence. Generic IO helpers that could be extracted for use in any Node.js project.

file: src/Common/FileUtils.js ↗ | tags: #filesystem #path-resolution #io-utilities
Last analyzed: 2026-08-08 22:13:32.348309
Next check: 2026-08-15 22:13:32.290839
$ submit: