var path = require('path');
var webpack = require('webpack');
var config = require('./webpack.config');

config.output = {
  path: './dist/',
  publicPath: '/',
  filename: '[name].bundle.js'
};
config.devServer = {
  contentBase: 'dist'
};
config.plugins.push(
  new webpack.HotModuleReplacementPlugin()
);

module.exports = config;

var path = require('path');
var webpack = require('webpack');
var config = require('./webpack.config');

config.output = {
  path: './dist/',
  publicPath: '/',
  filename: '[name].bundle.js'
};
config.devServer = {
  contentBase: 'dist',
  historyApiFallback: true
};
config.plugins.push(
  new webpack.HotModuleReplacementPlugin()
);

module.exports = config;

Add client-side routing support to dev server
Add client-side routing support to dev server
