Implement cluster and exceptions handler

This commit is contained in:
Shweelan Samson authored and Zaid Abdulla committed 2018-12-26 00:22:07 -08:00
1 parent 8b5cd384ab
commit 220d1a1748
6 files changed
+175 -18

No files matched your search

+9 -1
View File
@@ -8,7 +8,7 @@ function transformPackageJson(content) {
const pkg = JSON.parse(content);
delete pkg["devDependencies"];
pkg["scripts"] = {
start: "node server"
start: "node cluster"
};
return JSON.stringify(pkg, null, 2);
}
@@ -39,6 +39,14 @@ module.exports = [
)
]
},
{
mode: mode,
entry: "./server/cluster.js",
target: "node",
output: {
filename: "cluster.js"
}
},
{
mode: mode,
entry: "./client/app.js",