var path = require('path');
var webpack = require('webpack');

module.exports = {
    devtool: 'inline-source-map',
    entry: [
        'webpack-hot-middleware/client',
        path.join(__dirname, 'src', 'index.js'),
    ],
    output: {
        path: path.join(__dirname, 'dist'),
        filename: 'bundle.js',
        publicPath: '/'
    },
    plugins: [
        new webpack.HotModuleReplacementPlugin(),
        new webpack.NoErrorsPlugin(),
        new webpack.DefinePlugin({
            'process.env': {
                NODE_ENV: JSON.stringify(process.env.NODE_ENV || 'development')
            }
        })
    ],
    module: {
        loaders: [
            {
                test: /\.js$/,
                loaders: ['react-hot', `babel?${JSON.stringify({
                    cacheDirectory: true,
                    presets: ['es2015', 'stage-0', 'react'],
                })}`],
                exclude: /node_modules/,
            },
            {
                test: /\.css$/,
                loader: 'style-loader!css-loader',
            },
            {
                test: /\.png$/,
                loader: 'url-loader?limit=100000',
            },
            {
                test: /\.jpg$/,
                loader: 'file-loader',
            },
            {
                test: /\.(woff|woff2)(\?v=\d+\.\d+\.\d+)?$/,
                loader: 'url?limit=10000&mimetype=application/font-woff',
            },
            {
                test: /\.ttf(\?v=\d+\.\d+\.\d+)?$/,
                loader: 'url?limit=10000&mimetype=application/octet-stream',
            },
            {
                test: /\.eot(\?v=\d+\.\d+\.\d+)?$/,
                loader: 'file',
            },
            {
                test: /\.svg(\?v=\d+\.\d+\.\d+)?$/,
                loader: 'url?limit=10000&mimetype=image/svg+xml',
            },
        ]
    }
};
@@ -109,16 +109,84 @@
 e-map',%0A
+    devServer: %7B%0A      contentBase: './dist',%0A     hot: true%0A    %7D,%0A
     entr
@@ -188,17 +188,16 @@
  entry: 
-%5B
 %0A       
@@ -201,48 +201,52 @@
     
-'webpack
+%5B'babel-polyfill', 'react
 -hot-
-middleware/client',%0A       
+loader/patch',
  pat
@@ -281,22 +281,16 @@
 dex.js')
-,%0A    
 %5D,%0A    o
@@ -415,24 +415,59 @@
  plugins: %5B%0A
+%09new webpack.NamedModulesPlugin(),%0A
         new 
@@ -527,16 +527,22 @@
 pack.NoE
+mitOnE
 rrorsPlu
@@ -742,30 +742,28 @@
 : %7B%0A        
-loader
+rule
 s: %5B%0A       
@@ -804,122 +804,43 @@
 $/,%0A
-                
+%09%09
 loader
-s
 : 
-%5B'react-hot', %60babel?$%7BJSON.stringify(%7B%0A                    cacheDirectory: true,%0A       
+'babel-loader',%0Aquery: %7B%0A
     
@@ -845,19 +845,16 @@
         
-   
 presets:
@@ -859,36 +859,36 @@
 s: %5B
-'
+%22
 es2015
-', '
+%22, %22
 stage-0
-', '
+%22, %22
 react
-'
+%22
 %5D,%0A 
@@ -900,19 +900,46 @@
     
-      %7D)%7D%60%5D
+plugins: %5B%22react-hot-loader/babel%22%5D,%0A%7D
 ,%0A  
@@ -1916,8 +1916,9 @@
     %7D%0A%7D;
+%0A

Upgrade webpack conf to work with v3