Skip to content

Commit

Permalink
Actually delete dist files before compilation
Browse files Browse the repository at this point in the history
Possibly address #149
  • Loading branch information
cezaraugusto committed Sep 19, 2024
1 parent eac5802 commit 017179e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export class CleanHotUpdatesPlugin {
const hotUpdatePath = path.join(compiler.options.output.path || '', 'hot')

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

0 comments on commit 017179e

Please sign in to comment.