Skip to content

Commit

Permalink
fix: cli build --dest flag (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
Igor Kuznetsov authored and yyx990803 committed Apr 17, 2018
1 parent be82e09 commit e32d90b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/vuepress.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ program
.description('build dir as static site')
.option('-d, --dest <outDir>', 'specify build output dir (default: .vuepress/dist)')
.option('--debug', 'build in development mode for debugging')
.action((dir = '.', { debug, outDir }) => {
.action((dir = '.', { debug, dest }) => {
const outDir = dest ? path.resolve(dest) : null
wrapCommand(build)(path.resolve(dir), { debug, outDir })
})

Expand Down

0 comments on commit e32d90b

Please sign in to comment.