text: const path = require("path");
  const CopyWebpackPlugin = require("copy-webpack-plugin");
  
  module.exports = {
    entry: "./src/index.js",
    output: { filename: "bundle.js", path: path.resolve(__dirname, "dist") },
    resolve: { extensions: [".jsx", ".js"] },
    module: {
      rules: [
        { test: /\.jsx?$/, exclude: /node_modules/, use: "babel-loader" },
        { test: /\.css$/, use: ["style-loader", "css-loader"] }
      ]
    },
    plugins: [new CopyWebpackPlugin([{ from: "src/index.html" }])]
  };
  