2021-05-03 19:29:22 +02:00
|
|
|
import fs from "fs";
|
2021-03-30 11:31:17 +02:00
|
|
|
|
|
|
|
[
|
2021-03-24 18:49:34 +01:00
|
|
|
'build',
|
2021-03-30 11:31:17 +02:00
|
|
|
'dist',
|
2021-03-24 18:49:34 +01:00
|
|
|
'public',
|
2021-03-30 11:31:17 +02:00
|
|
|
].forEach(file => {
|
|
|
|
if (fs.existsSync(file)) {
|
|
|
|
console.log('Cleaning', file, '...');
|
|
|
|
fs.rmSync(file, {recursive: true});
|
|
|
|
}
|
|
|
|
});
|