Log what file have changed when linking dynamically in starter
This commit is contained in:
@ -28,9 +28,13 @@ export function startRebuildOnSrcChange() {
|
|||||||
|
|
||||||
console.log(chalk.green("Watching for changes in src/"));
|
console.log(chalk.green("Watching for changes in src/"));
|
||||||
|
|
||||||
chokidar.watch(["src", "stories"], { ignoreInitial: true }).on("all", async () => {
|
chokidar
|
||||||
await waitForDebounce();
|
.watch(["src", "stories"], { ignoreInitial: true })
|
||||||
|
.on("all", async (event, path) => {
|
||||||
|
console.log(chalk.bold(`${event}: ${path}`));
|
||||||
|
|
||||||
runYarnBuild();
|
await waitForDebounce();
|
||||||
});
|
|
||||||
|
runYarnBuild();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user