webpack-dev-server-doesnt-watch-file-changes

Env: Ubuntu 16

Could refer to https://webpack.js.org/configuration/watch/#not-enough-watchers

The main root cause is fs.inotify.max_user_watches too low, higher the value resolved my issue.

echo 1048576 > /proc/sys/fs/inotify/max_user_watches // resovle the issue for one time

## persist the changes

Add below conf to /etc/sysctl.conf

fs.inotify.max_user_watches=1048576

And then sysctl -p /etc/sysctl.conf