We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 59eaa6a commit a267b4aCopy full SHA for a267b4a
packages/@vuepress/core/lib/build.js
@@ -23,7 +23,7 @@ module.exports = async function build (sourceDir, cliOptions = {}) {
23
return console.error(logger.error(chalk.red('Unexpected option: outDir cannot be set to the current working directory.\n'), false))
24
}
25
26
- await fs.remove(outDir)
+ await fs.emptyDir(outDir)
27
logger.debug('Dist directory: ' + chalk.gray(outDir))
28
29
let clientConfig = createClientConfig(ctx, cliOptions).toConfig()
0 commit comments