text: const path = require('path');
  const webpack = require('webpack');
  const UglifyJSPlugin = require('uglifyjs-webpack-plugin');
  const HtmlWebpackPlugin = require('html-webpack-plugin');
  
  module.exports = {
      entry: [
          './src/index'
      ],
      output: {
          path: path.join(__dirname, 'dist'),
          filename: 'bundle.[hash].js',
      },
      plugins: [
          new webpack.HotModuleReplacementPlugin(),
          new UglifyJSPlugin({
              sourceMap: true
          }),
          new webpack.DefinePlugin({
              'process.env.NODE_ENV': JSON.stringify('production')
          }),
          new HtmlWebpackPlugin({
              template: './index.html'
          })
      ],
      resolve: {
          extensions: ['.js', '.jsx']
      },
      module: {
          rules: [{
              test: /\.jsx?$/,
              use: ['babel-loader'],
              include: path.join(__dirname, 'src')
          }]
      }
  };
  