13 lines
219 B
JavaScript
13 lines
219 B
JavaScript
const fs = require('fs');
|
|
|
|
[
|
|
'build',
|
|
'dist',
|
|
'public',
|
|
].forEach(file => {
|
|
if (fs.existsSync(file)) {
|
|
console.log('Cleaning', file, '...');
|
|
fs.rmSync(file, {recursive: true});
|
|
}
|
|
});
|