Running webpack with a clock in Bash on Ubuntu on Windows builds once and exits

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, .

+4
2

, Windows 10 Anniversary, INOTIFY. ​​ Insider build 14942 2016 :

https://blogs.msdn.microsoft.com/commandline/2016/10/07/wsl-adds-inotify-filesystem-change-notification-support/

Insider , spring, INOTIFY, , , .

.

+1

webepack --watch Windows. , , .

0

Source: https://habr.com/ru/post/1651097/


All Articles