Setup a development server for webpack with webpack-udev-server.
Install:
npm install --save webpack-config-dev-server
Add to your webpack.config.babel.js
:
import devServer from `webpack-config-dev-server`;
devServer()({
/* existing webpack configuration */
})