Is there a way to get webpack --watchBash to work on Ubuntu on Windows?
I run Ubuntu on Windows and it webpack --watchstarts once and exits without errors, as if I just ran only webpack.
Increasing the restriction on viewing a file inotifydoes not work; in /etc/sysctl.confmine fs.inotify.max_user_watches=524288.
Update: Adding the following to my file webpack.config.js:
watch: true,
watchOptions: {
poll: true,
aggregateTimeout: 300,
number: 1000
}
But this leads to the fact that my CPU usage reaches 100%, which makes this solution inappropriate.
2: : https://github.com/webpack/webpack-dev-server/issues/155. , Mac, .