andrewycode's avatar

HMR - works for .vue files, but reloads entire page for .js files

I setup HMR on my laravel/vue app per the instructions from the mix docs.

Everything works perfectly when editing .vue files (The change is applied without the entire page reloading).

However, when I edit any .js files (including but not limited to vuex store files), the entire page is reloaded. This is not ideal - I would like it to work the same as when editing .vue files.

Any ideas on how to debug this issue? Any clues about what would make the entire page reload as opposed to just the chunks that were edited? Any tips on documentation or articles somewhere that would point me in the right direction?

Any help would be appreciated. Thanks!

0 likes
0 replies

Please or to participate in this conversation.