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).