I like using browser-sync for my js server because it has some features that I need except [HMR] "Hot Module Replacement". I mean it does replace the css files without reloading the page but when it comes to js files it reload my whole page unlike webpack-dev-server.
webpack-dev-server just replace the the file no matter whether it's css file or js but browser-sync just does the HMR for css.
Is there any special config or I need to write some code? how can I have it in browser-sync?