mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-16 02:36:16 +01:00
Add --threads=# option for setting max threads
Make grunt NODE_ENV development by default
This commit is contained in:
@@ -180,6 +180,11 @@ function build(targets, callback) {
|
||||
async.series([
|
||||
beforeBuild,
|
||||
function (next) {
|
||||
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');
|
||||
|
||||
Reference in New Issue
Block a user