text: const path = require('path');
  const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
  const HtmlWebpackPlugin = require('html-webpack-plugin');
  
  module.exports = {
    entry: './src/index.js',
    output: {
      filename: 'bundle.js',
      path: path.resolve(__dirname, 'dist')
    },
    plugins: [
      new UglifyJsPlugin({
        uglifyOptions: {
          output: {
            comments: false,
          },
          compress: {
            unused: true,
            dead_code: true,
            warnings: false,
            drop_debugger: true
          }
        }
      }),
      new HtmlWebpackPlugin({
        template: './src/templates/index.html',
        filename: './index.html'
      })
    ],
    module: {
      rules: [
        {
          test: /\.(js|jsx)$/,
          exclude: [
            /node_modules/,
            /\.test.js$/,
          ],
          use: {
            loader: 'babel-loader'
          },
        },
        {
          test: /\.css$/,
          use: ['style-loader', 'css-loader']
        }
      ]
    },
    devServer: {
      contentBase: './dist'
    },
  };
  