text: const HtmlWebpackPlugin = require('html-webpack-plugin')
  const path = require('path')
  const webpack = require('webpack')
  
  module.exports = {
    entry: ['react-hot-loader/patch', './playground/index.js'],
  
    devServer: {
      contentBase: './dist',
      hot: true,
    },
  
    module: {
      rules: [
        {
          test: /\.js$/,
          exclude: /node_modules/,
          use: {
            loader: 'babel-loader',
            options: {
              plugins: ['react-hot-loader/babel'],
            },
          },
        },
      ],
    },
  
    output: {
      path: path.resolve(__dirname, './dist'),
      filename: 'bundle.js',
    },
  
    plugins: [
      new HtmlWebpackPlugin(),
      new webpack.NamedModulesPlugin(),
      new webpack.HotModuleReplacementPlugin(),
    ],
  }
  