const nodeExternals = require('webpack-node-externals');
const NodemonPlugin = require('nodemon-webpack-plugin');

module.exports = {
	mode: process.env.NODE_ENV || 'production',
	target: 'node',
	node: {
		__filename: true,
		__dirname: true
	},
	externals: [nodeExternals()],
	plugins: [
		new NodemonPlugin()
	],
	module: {
		rules: [
			{
				test: /\.js$/,
				exclude: /node_modules/,
				use: [
					'babel-loader',
					'eslint-loader'
				]
			}
		]
	}
};

@@ -106,16 +106,75 @@
 lugin');
+%0Aconst UglifyJsPlugin = require('uglifyjs-webpack-plugin');
 %0A%0Amodule
@@ -368,16 +368,136 @@
 n()%0A%09%5D,%0A
+%09optimization: %7B%0A%09%09minimizer: %5B%0A%09%09%09new UglifyJsPlugin(%7B%0A%09%09%09%09uglifyOptions: %7B%0A%09%09%09%09%09keep_fnames: true%0A%09%09%09%09%7D%0A%09%09%09%7D)%0A%09%09%5D%0A%09%7D,%0A
 %09module:

Update webpack to not minifiy class names.