Webpack loader that compiles Pug (formerly Jade) templates into HTML strings. Version 1.1.7 is the latest stable release. It connects Pug's compile function to Webpack's module system, outputting raw HTML that can be further processed by loaders like html-loader or raw-loader. Commonly used in webpack configurations to convert .pug files into plain HTML for bundling. Limited maintenance and lacks TypeScript support.
npm install pug-html-loaderVerified import paths — ran on the pinned version, not inferred.
Webpack configuration using pug-html-loader to compile .pug files to HTML strings.
Change `loaders: [...]` to `use: [...]` in webpack config.
Migrate to `pug-loader` (https://github.com/pugjs/pug-loader) for better support.
Use `raw-loader` first to ensure the output is treated as a string, not JavaScript.
Ensure `.pug` files are processed by pug-html-loader in webpack config.
Run `npm install pug-html-loader --save-dev`.