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
The dev server provides in memory records, which is good for development.
There is special management code for the dev-server at webpack/hot/dev-server.
The style-loader already includes hot replacement code.
If you visit http://localhost:8080 you should see the page with a red background and a input box. Type some text into the input box and edit style.css to have another background color.
Voilà... The background updates but without full page refresh. Text and selection in the input box should stay.
Read more about how to write you own hot replacement (management) code: hot code replacement