You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a fairly large project where I am editing multiple JavaScript files and I find that saving each one is causing HMR to reload the page too many times and thus sends a needless amount of API requests. However, I still want to use HMR for .css files since the page doesn't get fully reloaded and the changes are just injected.
So, my question is: Is it possible to tell HMR to ignore .js files or only watch for changes in .css files?
Thank you for your help and thanks for making this 😄.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I have a fairly large project where I am editing multiple JavaScript files and I find that saving each one is causing HMR to reload the page too many times and thus sends a needless amount of API requests. However, I still want to use HMR for
.css
files since the page doesn't get fully reloaded and the changes are just injected.So, my question is: Is it possible to tell HMR to ignore
.js
files or only watch for changes in.css
files?Thank you for your help and thanks for making this 😄.
Beta Was this translation helpful? Give feedback.
All reactions