Skip to content

Commit

Permalink
fix: 使用了 APP_ROOT 时 watch 目录不正确 (#2596)
Browse files Browse the repository at this point in the history
  • Loading branch information
ikobe authored and sorrycc committed Jun 13, 2019
1 parent cbffdfb commit d443c60
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/umi-build-dev/src/FilesGenerator.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export default class FilesGenerator {

createWatcher(path) {
const watcher = chokidar.watch(path, {
cwd: this.service.cwd,
ignored: watcherIgnoreRegExp, // ignore .dotfiles and _mock.js
ignoreInitial: true,
});
Expand Down

0 comments on commit d443c60

Please sign in to comment.