fork at least 1 thread in minifer

This commit is contained in:
Barış Soner Uşaklı
2023-04-16 18:49:35 -04:00
parent 1059fe4105
commit 05c96033ab

View File

@@ -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) => {