feat: server profile support
This commit is contained in:
parent
22737994ea
commit
93550c33d7
|
@ -19,8 +19,13 @@ config.externals = [
|
||||||
whitelist: /@avocado/,
|
whitelist: /@avocado/,
|
||||||
}),
|
}),
|
||||||
];
|
];
|
||||||
|
const nodeArgs = [];
|
||||||
|
if (process.argv.find((arg) => '--prof' === arg)) {
|
||||||
|
nodeArgs.push('--prof');
|
||||||
|
}
|
||||||
config.plugins.push(new StartServerPlugin({
|
config.plugins.push(new StartServerPlugin({
|
||||||
name: 'server.js',
|
name: 'server.js',
|
||||||
|
nodeArgs: nodeArgs,
|
||||||
restartable: false,
|
restartable: false,
|
||||||
}));
|
}));
|
||||||
config.target = 'node';
|
config.target = 'node';
|
||||||
|
|
Loading…
Reference in New Issue
Block a user