Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
docker-compose.ymlに環境変数追加
docker-compose環境への変更、お疲れ様でした。
NFSでマウントしている等の環境では、自動の再ビルドが行われないようです。(NFSか否かの違いだけで確認しています)
chokidarの
usePolling
オプションに対応する環境変数CHOKIDAR_USEPOLLING
をtrue
に変更すると、自動の再ビルドが機能しました。https://github.com/paulmillr/chokidar#performance
https://nodejs.org/dist/latest-v14.x/docs/api/fs.html#fs_availability
false
のままが良いようです差し支えなければ、dockerに環境変数を渡せるようにYAML変更すると、下記のように実行できて便利です。
export CHOKIDAR_USEPOLLING=true yarn start
ご検討よろしくお願いいたします。