Skip to content

Commit 017179e

Browse files
committed
Actually delete dist files before compilation
Possibly address #149
1 parent eac5802 commit 017179e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

programs/develop/webpack/plugin-compilation/clean-hot-updates.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export class CleanHotUpdatesPlugin {
77
const hotUpdatePath = path.join(compiler.options.output.path || '', 'hot')
88

99
if (fs.existsSync(hotUpdatePath)) {
10-
fs.rmSync(hotUpdatePath, {recursive: true, force: true})
10+
fs.rmdirSync(hotUpdatePath, {recursive: true})
1111
if (process.env.EXTENSION_ENV === 'development') {
1212
console.log(
1313
'[CleanHotUpdatesPlugin] Removed old hot-update files before compilation.'

0 commit comments

Comments
 (0)