html-loader
Webpack loader for processing HTML files, extracting assets and enabling HTML as module imports.
Build tools and bundlers npm MIT
Used in agent projects
22
0.2% of 12,697 public repos built with AI coding agents
Rank in build tools and bundlers
#76 of 81
by use in those projects
Downloads
1.4M
npm, last 7 days, html-loader
GitHub stars
1,159
last push Aug 27, 2026
How html-loader is used
html-loader is a dependency in 22 of the 12,697 public GitHub projects set up for AI coding agents that we scanned (0.2%), #76 of 81 in build tools and bundlers. The most used alternative there is Vite. Projects that use it most often also use webpack (95.5%), webpack CLI (86.4%), webpack-dev-server (81.8%).
Often used with html-loader
| webpack | 95.5% of html-loader projects · 47.5× more than average |
|---|---|
| webpack CLI | 86.4% of html-loader projects · 54.6× more than average |
| webpack-dev-server | 81.8% of html-loader projects · 70.7× more than average |
| html-webpack-plugin | 77.3% of html-loader projects · 72.1× more than average |
| Babel Loader | 68.2% of html-loader projects · 60.1× more than average |
| css-loader | 68.2% of html-loader projects · 100.7× more than average |
| Babel (JavaScript) | 63.6% of html-loader projects · 16.7× more than average |
| Phaser | 54.5% of html-loader projects · 13.4× more than average |
By coding agent
| Cursor | 0.2% of projects set up for it |
|---|
Share of public repos configured for each agent that list html-loader as a dependency.
Install
| Package | npm install html-loader |
|---|---|
| Main stacks | TypeScript / JavaScript (20), PHP (1), Next.js (1) |
| Example projects | ultrabolido/PrinceJS, anno-mods/anno-117-calculator, fedgut/JS-platform-Game, saricden/no-place-like |
Alternatives to html-loader
| Tool | Used in agent projects | Downloads / wk | GitHub stars | License |
|---|---|---|---|---|
| Vite npm Fast native-ESM powered web development build tool and dev server. |
2,897 (22.8%) | 194M | 83.3K | MIT |
| Babel (JavaScript) npm JavaScript compiler for transforming modern JavaScript to compatible code. |
484 (3.8%) | 187M | 44.1K | MIT |
| Turborepo npm High-performance build system for monorepos with task parallelization. |
399 (3.1%) | 29.5M | 31.2K | MIT |
| esbuild npm Extremely fast JavaScript and CSS bundler and minifier written in Go. |
342 (2.7%) | 3M | 40.1K | MIT |
| webpack npm Module bundler that packages JavaScript, assets and dependencies for browser deployment. |
255 (2.0%) | 54.9M | 66.1K | MIT |
| react-scripts npm Build configuration and scripts for Create React App zero-configuration setup. |
231 (1.8%) | 2.4M | 103K | MIT |
| React Compiler Babel Plugin npm Babel plugin for React Compiler that optimizes React component rendering. |
202 (1.6%) | 17.8M | 251K | MIT |
| webpack CLI npm Command-line interface for webpack bundler and related build tools. |
201 (1.6%) | 10.4M | 2,617 | MIT |