Use __dirname
e.g.
output: {
path: __dirname + "/dist/js", // or path: path.join(__dirname, "dist/js"),
filename: "bundle.js"
}
Getting: Error: `output.path` needs to be an absolute path or `/`
Use __dirname
e.g.
output: {
path: __dirname + "/dist/js", // or path: path.join(__dirname, "dist/js"),
filename: "bundle.js"
}
Getting: Error: `output.path` needs to be an absolute path or `/`