Dependency upgrades
This commit is contained in:
parent
7b6a8cf10b
commit
b43af95cf8
16 changed files with 244 additions and 276 deletions
|
@ -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');
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue