Why does it compile when making small changes to the code while running
npm run serve
, and is this behavior normal? I would like to know if the server should recompile for every change, even if it is a small change like deleting an HTML element or modifying CSS.
I tried to temporarily disable HMR in vue.config.js and restart it but it didn’t work and HMR is enabled by default.
haitam maharani is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1
This is a feature called hot reload. Search for hot-reload-uncache-modules
in your configuration and make sure it’s disabled.