Skip to content

Commit e32d90b

Browse files
Igor Kuznetsovyyx990803
Igor Kuznetsov
authored andcommitted
fix: cli build --dest flag (#97)
1 parent be82e09 commit e32d90b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bin/vuepress.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ program
3636
.description('build dir as static site')
3737
.option('-d, --dest <outDir>', 'specify build output dir (default: .vuepress/dist)')
3838
.option('--debug', 'build in development mode for debugging')
39-
.action((dir = '.', { debug, outDir }) => {
39+
.action((dir = '.', { debug, dest }) => {
40+
const outDir = dest ? path.resolve(dest) : null
4041
wrapCommand(build)(path.resolve(dir), { debug, outDir })
4142
})
4243

0 commit comments

Comments
 (0)