Dependency upgrades

This commit is contained in:
Djuri 2024-09-03 12:11:14 +02:00
parent 7b6a8cf10b
commit b43af95cf8
16 changed files with 244 additions and 276 deletions

View file

@ -10,7 +10,9 @@ const doRewrap = ({ cssClass }) => {
if (fs.existsSync(path.resolve(__dirname, 'dist/bundle.js'))) {
return;
}
} catch {}
} catch {
// do nothing
}
console.log('\nStart re-wrapping...');
fs.readFile(path.resolve(__dirname, 'dist/bundle.html'), 'utf8', function (err, data) {
if (!data) {
@ -36,10 +38,14 @@ const doRewrap = ({ cssClass }) => {
path.resolve(__dirname, 'dist/index.html'),
() => {}
);
} catch {}
} catch {
// do nothing
}
try {
fs.unlinkSync(path.resolve(__dirname, 'dist/bundle.html'));
} catch {}
} catch {
// do nothing
}
console.log('Finished: bundle.js + index.html have been regenerated.\n');
}
});