Ridermansb / webpack5Hot

Webpack 5 hot reloading

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Basic hot reloading with webpack 5 not working properly

demo

Issues

  • It is loading the entire page

  • Operating System: macOS Big Sur 11.2

  • Node Version: v14.15.4

  • NPM Version: 6.14.10

  • webpack Version: ^5.19.0

  • webpack-dev-server Version: ^4.0.0-beta.0

  • Browser: Google Chrome Version 88

  • This is a bug

Code

Repository link: https://github.com/Ridermansb/webpack5Hot

Expected Behavior

In all case... should not reload the page and only reload the portion that's changed

Actual Behavior

It's Always reloading the entire page.

How can we reproduce the behavior?

Just clone the repository ridermansb/webpack5Hot

  • npm install
  • npm start

And try update Header component

About

Webpack 5 hot reloading


Languages

Language:JavaScript 100.0%