@@ -1,3 +1,4 @@
.idea/workspace.xml
+build
node_modules
@@ -1,6 +1,9 @@
+const path = require("path"); // NodeJS builtin.
+
module.exports = {
entry: "./src/index.js",
output: {
- filename: "bundle.js"
+ filename: "bundle.js",
+ path: path.join(__dirname, "build") // path must be absolute.
}
};