提交 231da6a9 编写于 作者: U ULIVZ

feat($cli): debug flag at dev mode

reason for this feature: webpack-bar will wipe out the debug log at dev mode.
上级 191d891e
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册