Skip to content

Commit 0c89036

Browse files
committed
fix(cli): add processor for hot-only and client-logging
1 parent 0a7b363 commit 0c89036

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

bin/cli-flags.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ module.exports = {
3636
type: Boolean,
3737
describe: 'Do not refresh page if HMR fails',
3838
group: ADVANCED_GROUP,
39+
processor(opts) {
40+
opts.hot = 'only';
41+
delete opts.hotOnly;
42+
},
3943
},
4044
{
4145
name: 'setup-exit-signals',
@@ -73,6 +77,11 @@ module.exports = {
7377
group: DISPLAY_GROUP,
7478
describe:
7579
'Log level in the browser (none, error, warn, info, log, verbose)',
80+
processor(opts) {
81+
opts.client = opts.client || {};
82+
opts.client.logging = opts.clientLogging;
83+
delete opts.clientLogging;
84+
},
7685
},
7786
{
7887
name: 'https',

0 commit comments

Comments
 (0)