Skip to main content

Installation

Requirements

  • Node.js >= 18
  • Webpack >= 5.81.0 (recommend 5.96+ for supporting all features)

Install

Install the plugin using your favorite package manager:

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

Known Webpack loaders/plugins

ResourcesPackagesNotes
JS/TSbabel-loaderOptional
JS/TSswc-loaderOptional
CSScss-loaderRequired for CSS styles
CSSpostcss-loaderOptional
SASS/SCSSsass, sass-loaderRequired for SASS/SCSS
ResourcesPackageNotes
JSterser-webpack-pluginOptional
JSswc-minify-webpack-pluginOptional
HTMLhtml-minimizer-webpack-pluginOptional
Imagesimage-minimizer-webpack-pluginOptional