mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-09 23:45:45 +01:00
feat: improve grunt restart/rebuild speed
This commit is contained in:
@@ -118,6 +118,15 @@ function addProcessHandlers() {
|
||||
require('./meta').js.killMinifier();
|
||||
shutdown(1);
|
||||
});
|
||||
process.on('message', function (msg) {
|
||||
if (msg && msg.compiling === 'tpl') {
|
||||
const benchpressjs = require('benchpressjs');
|
||||
benchpressjs.flush();
|
||||
} else if (msg && msg.compiling === 'lang') {
|
||||
const translator = require('./translator');
|
||||
translator.flush();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function restart() {
|
||||
|
||||
Reference in New Issue
Block a user