text: const path = require('path');
  const HtmlWebpackPlugin = require('html-webpack-plugin');
  
  const HtmlWebpackPluginConfig = new HtmlWebpackPlugin({
    template: './client/index.html',
    filename: 'index.html',
    inject: 'body',
  });
  
  module.exports = {
    mode: 'development',
    entry: path.resolve(__dirname, './src/index.jsx'),
    output: {
      path: path.resolve(__dirname, 'dist'),
      filename: 'index.min.js',
      publicPath: '/',
    },
    devServer: {
      historyApiFallback: true
    },
    resolve: { extensions: ['.js','.jsx'] },
    module: {
      rules: [
        {
          test: /\.js|jsx$/,
          exclude: /node_modules/,
          use: 'babel-loader',
        },
        {
          test: /\.css$/,
          use: [
            {
              loader: 'style-loader',
            },
            {
              loader: 'css-loader',
            },
          ],
        },
        {
          test: /\.(jpg|png|gif|svg|pdf|ico)$/,
          use: [
            {
              loader: 'file-loader',
              options: {
                name: '[path][name]-[hash:8].[ext]'
              },
            },
          ]
        },
      ],
    },
    plugins: [
      HtmlWebpackPluginConfig,
    ]
  };
  