Skip to content

Commit

Permalink
normalize watcher ignored paths #716
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarotero committed Jan 16, 2025
1 parent a77bc0a commit e7d5b85
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/site.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,10 @@ export default class Site {
this.ignore(this.options.dest);
}

// Normalize the ignored paths
this.options.watcher.ignore = this.options.watcher.ignore.map((path) =>
typeof path === "string" ? normalizePath(path) : path
);
// Ignore the dest folder by the watcher
this.options.watcher.ignore.push(normalizePath(this.options.dest));
this.fs.options.ignore = this.options.watcher.ignore;
Expand Down

0 comments on commit e7d5b85

Please sign in to comment.