The current webpack file is such;
const path = require("path");
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
module.exports = {
output: {
path: path.join(__dirname, "/dist"),
filename: "index.bundle.js",
publicPath: "/",
},
devServer: {
port: 3010,
watchContentBase: true,
},
entry: ["@babel/polyfill", "./src/index.js"],
module: {
rules: [
{
test: /\.(js|jsx)$/,
exclude: /node_modules/,
use: {
loader: "babel-loader",
},
},
{
test: /\.scss$/,
use: [
{
loader: "style-loader",
},
{
loader: "css-loader",
},
{
loader: "sass-loader",
},
],
},
{
test: /\.(png|jpg)$/,
loader: "url-loader",
},
],
},
devServer: {
historyApiFallback: true,
},
plugins: [new MiniCssExtractPlugin()],
};
What is the necessary or must for react? For example browser compatibility, performance.