swaf/scripts/clean.js

13 lines
219 B
JavaScript
Raw Normal View History

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