From 344c40c3d170b32c8be5aea79d3938b800d63074 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=98=89=E6=B6=B5?= Date: Thu, 5 Dec 2019 19:47:11 +0800 Subject: [PATCH] feat(cli): clean site dir --- packages/vant-cli/src/commands/clean.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/vant-cli/src/commands/clean.ts b/packages/vant-cli/src/commands/clean.ts index dce7fb59d..bed36facd 100644 --- a/packages/vant-cli/src/commands/clean.ts +++ b/packages/vant-cli/src/commands/clean.ts @@ -1,10 +1,11 @@ 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() { await Promise.all([ emptyDir(ES_DIR), emptyDir(LIB_DIR), - emptyDir(DIST_DIR) + emptyDir(DIST_DIR), + emptyDir(SITE_DIST_DIR) ]); }