Difference between npm run watch and npm run watch-poll

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://laravel.com/docs/5.4/mix#running-mix

https://webpack.js.org/configuration/watch/

Leave a Comment