mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
fix(cli): skip demo、test dir in build watch mode
This commit is contained in:
parent
eafcc128a2
commit
904b53c368
@ -176,6 +176,10 @@ function watchFileChange() {
|
||||
logger.watch('Compiled successfully, watching file changes...');
|
||||
|
||||
chokidar.watch(SRC_DIR).on('change', async path => {
|
||||
if (isDemoDir(path) || isTestDir(path)) {
|
||||
return;
|
||||
}
|
||||
|
||||
const logger = getInteractiveLogger();
|
||||
const esPath = path.replace(SRC_DIR, ES_DIR);
|
||||
const libPath = path.replace(SRC_DIR, LIB_DIR);
|
||||
|
Loading…
x
Reference in New Issue
Block a user