`npm run watch` does not work in Laravel 5.4

Using Laravel 5.4 and Mix, when I start npm run watch, it compiles everything every time and looks like it is waiting for changes, but when I make changes to any of my asset files, it does not detect anything. Does anyone else have this problem in version 5.4 or have a solution?

+6
source share
1 answer

The decision was provided by Jeffrey Way in Larakast.

Try adding the -watch-poll flag to your package.jsonscript. Or just try:

node_modules/.bin/webpack --watch --watch-poll --config=node_modules/laravel-mix/setup/webpack.config.js

+8
source

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


All Articles