mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-02 22:00:34 +01:00
fork at least 1 thread in minifer
This commit is contained in:
@@ -34,7 +34,7 @@ Object.defineProperty(Minifier, 'maxThreads', {
|
||||
enumerable: true,
|
||||
});
|
||||
|
||||
Minifier.maxThreads = os.cpus().length - 1;
|
||||
Minifier.maxThreads = Math.max(1, os.cpus().length - 1);
|
||||
|
||||
Minifier.killAll = function () {
|
||||
pool.forEach((child) => {
|
||||
|
||||
Reference in New Issue
Block a user