text: const path = require("path");
  const HtmlWebpackPlugin = require("html-webpack-plugin");
  
  module.exports = {
    entry: "./index.js",
    output: {
      path: path.join(__dirname, "/dist"),
      filename: "index_bundle.js",
      publicPath: '/'
    },
    module: {
      rules: [
        {
          test: /\.js$/,
          exclude: /node_modules/,
          use: {
            loader: "babel-loader"
          }
        },
        {
          test: /\.jsx$/,
          exclude: /node_modules/,
          use: {
            loader: "babel-loader"
          }
        },
        {
          test: /\.css$/,
          use: ["style-loader", "css-loader"]
        }
      ]
    },
    devServer: {
      historyApiFallback: true,
      overlay: true
    },
    plugins: [
      new HtmlWebpackPlugin({
        template: "./index.html"
      })
    ]
  };
  