feat(cli): improve build watch mode logger

This commit is contained in:
陈嘉涵
2019-12-24 08:13:48 +08:00
parent ec1c87f8ae
commit eafcc128a2
3 changed files with 7 additions and 2 deletions

View File

@@ -173,6 +173,8 @@ async function buildPackageEntry() {
}
function watchFileChange() {
logger.watch('Compiled successfully, watching file changes...');
chokidar.watch(SRC_DIR).on('change', async path => {
const logger = getInteractiveLogger();
const esPath = path.replace(SRC_DIR, ES_DIR);