Skip to content

Commit

Permalink
feat($cli): debug flag at dev mode
Browse files Browse the repository at this point in the history
reason for this feature: webpack-bar will wipe out the debug log at dev mode.
  • Loading branch information
ulivz committed Jul 26, 2018
1 parent 191d891 commit 231da6a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bin/vuepress.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 231da6a

Please sign in to comment.