Implement cluster and exceptions handler
This commit is contained in:
1 parent
8b5cd384ab
commit
220d1a1748
6 files changed
+175
-18
No files matched your search
+9
-1
@@ -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",
|
||||
|
||||
Reference in new issue
Block a user