RattenheimRechner/webpack.config.js

25 lines
500 B
JavaScript
Raw Permalink Normal View History

2024-07-30 18:02:37 +00:00
const path = require("path");
const port = 3000;
const openBrowser = true;
module.exports = {
entry: {
app: ["./src/index.js"],
},
output: {
filename: "bundle.js",
path: path.resolve(__dirname, "public"),
publicPath: "/",
},
mode: "development",
devtool: "source-map",
devServer: {
port: port,
open: openBrowser,
historyApiFallback: {
index: "index.html",
},
static: "public",
},
};