const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
module.exports = {
entry: {app: './js/index.js'}
output: {
filename: '[name].js',
path: path.resolve(__dirname, './dev/js')
},
optimization: {
minimizer: [new UglifyJsPlugin()],
},
}