text: const path = require("path");
  const HtmlWebPackPlugin = require("html-webpack-plugin");
  
  module.exports = {
    entry: "/client/src/index.js",
    output: {
      path: path.resolve(__dirname, "dist"),
    },
    module: {
      rules: [
        {
          test: /\.(js|jsx)$/,
          exclude: /node_modules/,
          use: {
            loader: "babel-loader",
            options: {
              presets: ["@babel/preset-env", "@babel/preset-react"],
            },
          },
        },
      ],
    },
    plugins: [
      new HtmlWebPackPlugin({
        template: "./client/public/index.html",
      }),
    ],
  };