feat: inspect

This commit is contained in:
cha0s 2019-10-03 00:31:09 -05:00
parent 3c3e5bf79a
commit 279db3e018

View File

@ -42,6 +42,9 @@ config.module.rules[3].use.options.paths.push(
path.resolve(__dirname, 'server'),
);
const nodeArgs = ['--preserve-symlinks'];
if (process.argv.find((arg) => '--inspect' === arg)) {
nodeArgs.push('--inspect');
}
if (process.argv.find((arg) => '--prof' === arg)) {
nodeArgs.push('--prof');
}