Vue, installed on Homestead cannot be updated immediately after modification. Need to rerun npm run dev

installing Homestead, on MAC can access the project created by vue-cli in the virtual machine, but after the code is modified on the real machine, it cannot be updated in real time. You need to enter the virtual machine and rerun npm run dev to update.

if modified in the virtual machine, it can be updated directly.

is there any way to solve this problem?


the principle of dev hot update is that changes to the file can be detected. I don't know how you modify the file. It may be that the file system of Homestead cannot detect that you have modified the file

.
Menu