text: const path = require('path');
  const { CleanWebpackPlugin } = require('clean-webpack-plugin');
  const HtmlWebpackPlugin = require('html-webpack-plugin');
  
  module.exports = {
    entry: path.resolve(__dirname, '..', './website/index.js'),
    module: {
      rules: [
        {
          test: /\.(js|jsx)$/,
          exclude: /node_modules/,
          use: ['babel-loader', 'eslint-loader'],
        },
      ],
    },
    resolve: {
      extensions: ['*', '.js', '.jsx'],
    },
    plugins: [
      new CleanWebpackPlugin(),
      new HtmlWebpackPlugin({
        title: 'Advanced React with Webpack Setup',
        template: path.resolve(__dirname, '..', './website/index.html'),
      }),
    ],
    output: {
      path: path.resolve(__dirname, '..', 'public'),
      filename: 'bundle.js',
    },
  };
  