mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-15 18:26:15 +01:00
Resolve merge conflicts
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
|
||||
var async = require('async');
|
||||
var winston = require('winston');
|
||||
var os = require('os');
|
||||
var nconf = require('nconf');
|
||||
var padstart = require('lodash.padstart');
|
||||
|
||||
@@ -183,11 +182,14 @@ function build(targets, callback) {
|
||||
var startTime;
|
||||
var totalTime;
|
||||
async.series([
|
||||
async.apply(beforeBuild, targets),
|
||||
function (next) {
|
||||
beforeBuild(targets, next);
|
||||
},
|
||||
function (next) {
|
||||
var parallel = os.cpus().length > 1 && !nconf.get('series');
|
||||
var threads = parseInt(nconf.get('threads'), 10);
|
||||
if (threads) {
|
||||
require('./minifier').maxThreads = threads - 1;
|
||||
}
|
||||
|
||||
var parallel = !nconf.get('series');
|
||||
if (parallel) {
|
||||
winston.info('[build] Building in parallel mode');
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user