Newer
Older
const path = require('path')
const HtmlWebpackPlugin = require('html-webpack-plugin')
const CleanWebpackPlugin = require('clean-webpack-plugin')
const webpack = require('webpack')
},
plugins: [
new CleanWebpackPlugin(['dist']),
new HtmlWebpackPlugin({
// Load a custom template
template: 'src/client/index.html',
favicon: 'src/client/favicon.ico'
new webpack.HotModuleReplacementPlugin()
],
output: {
filename: '[name].bundle.js',
path: path.resolve(__dirname, outputDirectory),