mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-25 02:41:46 +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...');
|
logger.watch('Compiled successfully, watching file changes...');
|
||||||
|
|
||||||
chokidar.watch(SRC_DIR).on('change', async path => {
|
chokidar.watch(SRC_DIR).on('change', async path => {
|
||||||
|
if (isDemoDir(path) || isTestDir(path)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const logger = getInteractiveLogger();
|
const logger = getInteractiveLogger();
|
||||||
const esPath = path.replace(SRC_DIR, ES_DIR);
|
const esPath = path.replace(SRC_DIR, ES_DIR);
|
||||||
const libPath = path.replace(SRC_DIR, LIB_DIR);
|
const libPath = path.replace(SRC_DIR, LIB_DIR);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user