text: const path = require("path")
  const HtmlWebpackPlugin = require("html-webpack-plugin");
  
  module.exports = {
      mode: "development",
      entry: path.resolve(__dirname, "src/index.js"),
      output: {
          path: path.resolve(__dirname, "public"),
          filename: "bundle.[content-hash].js"
      },
      plugins: [
          new HtmlWebpackPlugin({
              template: path.resolve(__dirname, "src/index.html")
          })
      ],
      module: {
          rules: [
              {
                  test: /\.(js|jsx)$/,
                  exclude: /node_modules/,
                  use: ["babel-loader"]
              }
          ]
      },
      resolve: {
          extensions: [".js", ".jsx"]
      }
  }