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