I was using webpack --watch statement to run my webpack in watch mode for building my ReactJS app. However for some reason, it stopped working now. It now just
webpack --watch
This happen mostly because it watches the node_modules folder and exceeds the limit. In this case, rather than modifying the host system, use:
node_modules
watchOptions: { aggregateTimeout: 300, poll: 1000, ignored: /node_modules/ }
to the webpack.config.js exports.
webpack.config.js