Skip to content

Commit

Permalink
fix: unification copy behavior between watched and not watched assets
Browse files Browse the repository at this point in the history
`chokidar.watch` listen also for hidden files but `glob` do not
this means hidden files are copied in watch mode but they are not when watch mode if turn off
  • Loading branch information
addun committed Jul 19, 2024
1 parent 6b81d67 commit 3664ed0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/compiler/assets-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,10 @@ export class AssetsManager {

this.watchers.push(watcher);
} else {
const files = sync(item.glob, { ignore: item.exclude }).filter(
(matched) => statSync(matched).isFile(),
);
const files = sync(item.glob, {
ignore: item.exclude,
dot: true,
}).filter((matched) => statSync(matched).isFile());
for (const path of files) {
this.actionOnFile({ ...option, path, action: 'change' });
}
Expand Down

0 comments on commit 3664ed0

Please sign in to comment.