Change in node_modules file does not reflect the change in UI
Hey guys,
Maybe I am doing it wrong. I have modified a .vue template in node_modules folder. Now when I run npm run watch or npm run dev it doesn't get reflected in UI.
You should not be modifying files in your node_modules folder. These are vendor dependencies much like the vendor folder is for php.
The watcher (assuming the default laravel configuration) keeps an eye on files in your resources directory which is where your javascript should go (much like the app folder for your php code).
I agree thats a bad practice. However, is there any way I can ask npm to rebuid all the files in the node_modules folder. I did npm rebuild but still the output is same.