From 231da6a94f2d9650b73a71458c3647c3249b92c1 Mon Sep 17 00:00:00 2001 From: ULIVZ <472590061@qq.com> Date: Thu, 26 Jul 2018 19:03:23 +0800 Subject: [PATCH] feat($cli): debug flag at dev mode reason for this feature: webpack-bar will wipe out the debug log at dev mode. --- bin/vuepress.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/vuepress.js b/bin/vuepress.js index 1f6c35da..36433168 100755 --- a/bin/vuepress.js +++ b/bin/vuepress.js @@ -27,8 +27,9 @@ program .description('start development server') .option('-p, --port ', 'use specified port (default: 8080)') .option('-h, --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