Simplifies creation of HTML files to serve your webpack bundles
npm install @microcode/html-webpack-plugin[![npm][npm]][npm-url]
[![node][node]][node-url]
!npm
[![deps][deps]][deps-url]
[![tests][tests]][tests-url]


Plugin that simplifies creation of HTML files to serve your bundles
``bash`
npm i --save-dev html-webpack-plugin@next
`bash`
yarn add --dev html-webpack-plugin@next
`bash`
npm i --save-dev html-webpack-plugin
`bash`
yarn add --dev html-webpack-plugin
This is a webpack plugin that simplifies creation of HTML files to serve your webpack bundles. This is especially useful for webpack bundles that include a hash in the filename which changes every compilation. You can either let the plugin generate an HTML file for you, supplylodash
your own template using templates or use your own loader.
Thanks for supporting the ongoing improvements to the html-webpack-plugin!
The html-webpack-plugin works without configuration.
It's a great addition to the ⚙️ webpack-config-plugins.
The html-webpack-plugin provides hooks to extend it to your needs. There are already some really powerful plugins which can be integrated with zero configuration
* webpack-subresource-integrity for enhanced asset security
* appcache-webpack-plugin for iOS and Android offline usage
* favicons-webpack-plugin which generates favicons and icons for iOS, Android and desktop browsers
* html-webpack-harddisk-plugin can be used to always write to disk the html file, useful when webpack-dev-server / HMR are being used
* html-webpack-inline-source-plugin to inline your assets in the resulting HTML file
* html-webpack-inline-svg-plugin to inline SVGs in the resulting HTML file.
* html-webpack-exclude-assets-plugin for excluding assets using regular expressions
* html-webpack-include-assets-plugin for including lists of js or css file paths (such as those copied by the copy-webpack-plugin).
* script-ext-html-webpack-plugin to add async, defer or module attributes to your