Any time you change your JavaScript, webpack will rebuild bundle.js and refresh the browser automatically.
Modern JavaScript Explained For Dinosaurs
Peter Jang
54K159

webpack-dev-server doesn’t quite work this way — it reflects the changes, but doesn’t actually change bundle.js. While server is running you can normally edit index.js, see how your app evolves, but bundle.js won’t be changed until you run webpack on it, either manually or via npm script (it’s basically building the production version of the app, since you don’t actually need bundle.js during development).

Like what you read? Give Kuba Przetakiewicz a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.