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