Update Webpack Dev Server
We should update the configuration as follows (added historyApiFallback
option):
// To run development server
devServer: {
contentBase: __dirname,
publicPath,
compress: true,
port: 9000,
hot: true,
index: 'index.html',
historyApiFallback: {
index: 'index.html',
},
},