text: const path = require( 'path' );
  const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
  
  module.exports = {
  	mode: 'development',
  	entry: 'index.js',
  	output: {
  		path: path.resolve( __dirname, 'dist' ),
  		filename: 'index.js'
  	},
  	resolve: {
  		modules: [ 'modules' ]
  	},
  	optimization: {
  		minimizer: [new UglifyJsPlugin({
  			parallel: true
  		})]
  	},
  	module: {
  		rules: [
  			{
  				test: /\.js$/,
  				exclude: /node_modules/,
  				use: {
  					loader: 'babel-loader',
  					options: {
  						presets: [
  							'@babel/preset-env'
  						]
  					}
  				}
  			}
  		]
  	}
  };
  