const CleanWebpackPlugin = require('clean-webpack-plugin');
const path = require('path');

module.exports = {
	mode: 'production',
	entry: {
		main: './src/js/main.js',
		portfolio: './src/js/portfolio.js'
	},
	plugins: [
		new CleanWebpackPlugin(['dist/js'])
	],
	output: {
		filename: '[name].js',
		path: path.resolve(__dirname, 'dist/js')
	}
};

@@ -288,16 +288,30 @@
 '%5Bname%5D.
+%5Bcontenthash%5D.
 js',%0A%09%09p

Add content hash to file name of bundles