Skip to content

Commit b507fae

Browse files
committed
feat: empty temp dir before launching app
1 parent 078696e commit b507fae

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/@vuepress/core/lib/prepare/AppContext.js

+2
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,8 @@ function createTemp (tempPath) {
219219

220220
if (!fs.existsSync(tempPath)) {
221221
fs.ensureDirSync(tempPath)
222+
} else {
223+
fs.emptyDirSync(tempPath)
222224
}
223225

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

0 commit comments

Comments
 (0)