mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-05-22 14:39:16 +08:00
feat(cli): clean site dir
This commit is contained in:
parent
f7ef1845e8
commit
344c40c3d1
@ -1,10 +1,11 @@
|
|||||||
import { emptyDir } from 'fs-extra';
|
import { emptyDir } from 'fs-extra';
|
||||||
import { ES_DIR, LIB_DIR, DIST_DIR } from '../common/constant';
|
import { ES_DIR, LIB_DIR, DIST_DIR, SITE_DIST_DIR } from '../common/constant';
|
||||||
|
|
||||||
export async function clean() {
|
export async function clean() {
|
||||||
await Promise.all([
|
await Promise.all([
|
||||||
emptyDir(ES_DIR),
|
emptyDir(ES_DIR),
|
||||||
emptyDir(LIB_DIR),
|
emptyDir(LIB_DIR),
|
||||||
emptyDir(DIST_DIR)
|
emptyDir(DIST_DIR),
|
||||||
|
emptyDir(SITE_DIST_DIR)
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user