2021-03-30 12:44:09 +02:00
|
|
|
const fs = require('fs');
|
|
|
|
|
|
|
|
[
|
2021-11-20 19:54:59 +01:00
|
|
|
'intermediates',
|
2021-03-30 12:44:09 +02:00
|
|
|
'dist',
|
2021-11-20 19:54:59 +01:00
|
|
|
'public',
|
2021-03-30 12:44:09 +02:00
|
|
|
].forEach(file => {
|
|
|
|
if (fs.existsSync(file)) {
|
|
|
|
console.log('Cleaning', file, '...');
|
|
|
|
fs.rmSync(file, {recursive: true});
|
|
|
|
}
|
|
|
|
});
|