1
2
3
4
5
6
7
8
9
10
11
12
13
| const fs = require('fs');
| const path = require('path');
|
| const targets = [
| path.join(__dirname, '..', 'build'),
| path.join(__dirname, '..', 'dist'),
| ];
|
| for (const target of targets) {
| fs.rmSync(target, { recursive: true, force: true });
| }
|
| console.log('[BUILD] cleaned build/ and dist/');
|
|