html webpack plugin
//installation
npm install --save-dev html-webpack-plugin
//configuration
var HtmlWebpackPlugin = require('html-webpack-plugin');
var path = require('path');
module.exports = {
entry: 'index.js',
output: {
path: path.resolve(__dirname, './dist'),
filename: 'index_bundle.js'
},
plugins: [new HtmlWebpackPlugin({
template: "./index.html",
})]
};
3.75
4
npm install html-webpack-plugin --save-dev
Thank you!
4
0
3.5
4
npm install html-webpack-plugin --save-dev
Thank you!
4
0
3.83
6
npm i --save-dev html-webpack-plugin
Thank you!
6
0
3.9
10
npm i --save-dev html-webpack-plugin
Thank you!
10
0
Are there any code examples left?
New code examples in category Shell/Bash