feat($cli): debug flag at dev mode

reason for this feature: webpack-bar will wipe out the debug log at dev mode.
This commit is contained in:
ULIVZ
2018-07-26 19:03:23 +08:00
parent 191d891ec2
commit 231da6a94f
+3 -2
View File
@@ -27,8 +27,9 @@ program
.description('start development server')
.option('-p, --port <port>', 'use specified port (default: 8080)')
.option('-h, --host <host>', 'use specified host (default: 0.0.0.0)')
.action((dir = '.', { host, port }) => {
wrapCommand(dev)(path.resolve(dir), { host, port })
.option('--debug', 'start development server in debug mode')
.action((dir = '.', { host, port, debug }) => {
wrapCommand(dev)(path.resolve(dir), { host, port, debug })
})
program