-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Description
- Operating System: Linux
- Node Version: 14.14.0
- NPM Version: 6.14.7
- webpack Version: 5.2.0
- webpack-dev-server Version: 3.11.0
- Browser: Google Chrome
- This is a bug
- This is a modification request
Code
// webpack.config.js
...
entry: {
first: ['./src/first.js', './src/first.css'],
second: ['./src/second.js', './src/second.css'],
},
...Expected Behavior
After starting the dev server, hot module replacement should work for all JS and CSS files from all webpack entries.
Actual Behavior
Hot module replacement doesn't work for all entries. Only files from the second entry are hot reloaded when changed. Files from the first entry do not get hot reloaded when changed.
For Bugs; How can we reproduce the behavior?
- Clone repro then
yarn && yarn start - Open http://localhost:8080/
- Change
src/first.jsandsrc/first.css- notice they are not hot reloaded - Change
src/second.jsandsrc/second.css- notice they are hot reloaded
spamshaker, bodinsamuel, onetrev, kukjevov, andywang646691 and 38 more
Metadata
Metadata
Assignees
Labels
No labels