Skip to content

Commit

Permalink
feat: empty temp dir before launching app
Browse files Browse the repository at this point in the history
  • Loading branch information
ulivz committed Sep 8, 2018
1 parent 078696e commit b507fae
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/@vuepress/core/lib/prepare/AppContext.js
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,8 @@ function createTemp (tempPath) {

if (!fs.existsSync(tempPath)) {
fs.ensureDirSync(tempPath)
} else {
fs.emptyDirSync(tempPath)
}

logger.tip(`Temp directory: ${chalk.gray(tempPath)}`)
Expand Down

0 comments on commit b507fae

Please sign in to comment.