mirror of
https://github.com/youzan/vant.git
synced 2025-10-19 10:07:07 +00:00
feat(cli): clean site dir
This commit is contained in:
@@ -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)
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user