mozyのかきおき

mozyの読書感想文や思考置き場

npm run watch と npm run watch-poll の違い

違い

npm run watch と npm run watch-poll の違いは、watchは ファイルの変更をみている。 (特定のシステムの場合はうまくいかない)
watch-poll は 変更を 1秒単位などで 定期的に確認をする。

watch will listen for file changes, however, on certain systems this won't always work.

watch-poll periodically checks (polls) for changes e.g. every 1000ms it will manually check to see if any files have changed.

参考

https://stackoverflow.com/questions/44127688/difference-between-npm-run-watch-and-npm-run-watch-poll