Skip to content

Commit 231da6a

Browse files
committed
feat($cli): debug flag at dev mode
reason for this feature: webpack-bar will wipe out the debug log at dev mode.
1 parent 191d891 commit 231da6a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

bin/vuepress.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,9 @@ program
2727
.description('start development server')
2828
.option('-p, --port <port>', 'use specified port (default: 8080)')
2929
.option('-h, --host <host>', 'use specified host (default: 0.0.0.0)')
30-
.action((dir = '.', { host, port }) => {
31-
wrapCommand(dev)(path.resolve(dir), { host, port })
30+
.option('--debug', 'start development server in debug mode')
31+
.action((dir = '.', { host, port, debug }) => {
32+
wrapCommand(dev)(path.resolve(dir), { host, port, debug })
3233
})
3334

3435
program

0 commit comments

Comments
 (0)