const path = require("path"); // NodeJS builtin. module.exports = { entry: "./src/index.js", output: { filename: "bundle.js", path: path.join(__dirname, "build") // path must be absolute. } };