Log what file have changed when linking dynamically in starter
This commit is contained in:
@ -28,7 +28,11 @@ 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
|
||||||
|
.watch(["src", "stories"], { ignoreInitial: true })
|
||||||
|
.on("all", async (event, path) => {
|
||||||
|
console.log(chalk.bold(`${event}: ${path}`));
|
||||||
|
|
||||||
await waitForDebounce();
|
await waitForDebounce();
|
||||||
|
|
||||||
runYarnBuild();
|
runYarnBuild();
|
||||||
|
Reference in New Issue
Block a user