Webpack with hot module replacement (HMR) in WordPress theme development

I tried for what seemed a very long time to get HMR set up and working with in my wordpress theme but really struggled to workout how to set it up correctly.

Below I’ve detailed what I have done to get HMR working on my development virtual machine. And also getting a Vue.js app working with HMR and vue-cli 3.

Continue reading “Webpack with hot module replacement (HMR) in WordPress theme development”