html-append-plugin
Install
$ npm install html-append-plugin -D
Usage
The plugin will append content to html files duration compilation
var HtmlWebpackPlugin = ;var htmlAppendPlugin = ;var webpackConfig = entry: 'index.js' output: path: 'dist' filename: 'bundle.js' plugins: append: 'added content' // or // append: function(){ // return 'added content'; // }
This will generate a file dist/index.html
containing the following content:
Webpack App added content
License
MIT © fengzilong