Skip to content

Commit

Permalink
fix broken build
Browse files Browse the repository at this point in the history
  • Loading branch information
larsthorup committed May 25, 2021
1 parent 1f53829 commit 01bd380
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dev/asset-bundle.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ const path = require('path');
const rootDir = path.join(__dirname, '..');
const buildDir = path.join(rootDir, 'build');

fs.rmdirSync(buildDir, { recursive: true });
if (fs.existsSync(buildDir)) {
fs.rmdirSync(buildDir, { recursive: true });
}
fs.mkdirSync(buildDir);
for (const filename of ['favicon.ico', 'index.html']) {
const src = path.join(rootDir, filename);
Expand Down

0 comments on commit 01bd380

Please sign in to comment.