mirror of
https://github.com/wahyd4/vuepress.git
synced 2026-08-09 05:16:23 +10:00
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:
+3
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user