mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-14 17:56:16 +01:00
Merge pull request #3900 from Schamper/debug-fix
Also clean the minifier process options if the --debug option is used
This commit is contained in:
@@ -129,7 +129,7 @@ module.exports = function(Meta) {
|
|||||||
* Check if the parent process is running with the debug option --debug (or --debug-brk)
|
* Check if the parent process is running with the debug option --debug (or --debug-brk)
|
||||||
*/
|
*/
|
||||||
var forkProcessParams = {};
|
var forkProcessParams = {};
|
||||||
if(global.v8debug) {
|
if(global.v8debug || process.execArgv.indexOf('--debug') != -1) {
|
||||||
/**
|
/**
|
||||||
* use the line below if you want to debug minifier.js script too (or even --debug-brk option, but
|
* use the line below if you want to debug minifier.js script too (or even --debug-brk option, but
|
||||||
* you'll have to setup your debugger and connect to the forked process)
|
* you'll have to setup your debugger and connect to the forked process)
|
||||||
|
|||||||
Reference in New Issue
Block a user