#laravel mix not watching for new changes

7 messages · Page 1 of 1 (latest)

hexed aspen
#

laravel mix is not watching the new changes, when i do npm run dev then the chagnes will be gone all of it in js files, why? any fix?

shut delta
#

so first i'd share your webpack.mix.js file, so we can see what file/files you're outputting the compiled JS to.

but one other thing to consider also, running npm run dev will just run the build script once. if you want to watch your files for changes, you actually want to run npm run watch, that will contiune watching for changes in the backround and won't require you to run the npm run dev command every time you make a change.

#

it almost sounds like your webpack configuration is compiling and outputing the same file.

hexed aspen
#

@shut delta fixed it man, thanks

signal oriole
shut delta
#

Awesome! Glad that helped @hexed aspen! Like @signal oriole said, just be sure to close out the issue!

hexed aspen
#

@shut delta , thanks man but i have gotten another problem this time it's with overlapping between appointments and booked appointments, here is the issue below