text: const HtmlWebPackPlugin = require('html-webpack-plugin');
  const htmlPlugin = new HtmlWebPackPlugin({
    template: './client/index.html',
    filename: './index.html',
  });
  const path = require('path');
  
  module.exports = {
    // devServer: {
    //   contentBase: path.resolve(__dirname, 'client'),
    //   historyApiFallback: true,
    // },
    entry: './client/index.js',
    output: {
      publicPath: '/',
      path: path.resolve(__dirname, 'build'),
      filename: 'bundle.js',
    },
    plugins: [htmlPlugin],
    module: {
      rules: [
        {
          test: /\.jsx?/,
          exclude: /node_modules/,
          use: {
            loader: 'babel-loader',
          },
        },
        {
          test: /\.s[ac]ss$/i,
          use: ['style-loader', 'css-loader', 'sass-loader'],
        },
      ],
    },
  };
  