const HtmlWebpackPlugin = require("html-webpack-plugin"); const path = require("path"); module.exports = { entry: "./src/index.jsx", output: { path: path.resolve(__dirname, "dist"), filename: "bundle.[hash].js", }, devServer: { compress: true, port: 8080, hot: true, static: "./dist", historyApiFallback: true, open: true, }, module: { rules: [ { test: /\.(js|jsx)$/, exclude: /node_modules/, use: { loader: "babel-loader", }, }, ], }, plugins: [ new HtmlWebpackPlugin({ template: __dirname + "/public/index.html", filename: "index.html", }), ], experiments: { asyncWebAssembly: true }, mode: "development", devtool: "inline-source-map", };