text: const webpack = require('webpack');
  
  module.exports = {
      entry: './client/index.js',
      // devServer: {
      //   publicPath: '/build/',
      //   proxy: {
      //       '/api/leaders': 'http://localhost:3000/'
      //     }
      // },
      module: {
          rules: [
            {
              test: /\.(js|jsx)$/,
              exclude: /node_modules/,
              use: ['babel-loader'],
            }
          ]
        },
        resolve: {
          extensions: ['*', '.js', '.jsx']
        },    
      output: {
          path: __dirname + '/dist',
          publicPath: '/',
          filename: 'bundle.js'
      },
      plugins: [
          new webpack.HotModuleReplacementPlugin()
      ],
      devServer: {
          contentBase: './dist',
          hot: true
      }
  }