// Notes : https://medium.com/@dabit3/beginner-s-guide-to-webpack-b1f1a3638460#.fnql85kgk

var HtmlWebpackPlugin = require('html-webpack-plugin');
var HtmlWebpackPluginConfig = new HtmlWebpackPlugin({
    template: __dirname + '/app/index.html',
    filename: 'index.html', 
    inject: 'body'
})

module.exports = {
    entry: [
        './app/index.js'
    ],

    output: {
        path: __dirname + '/dist',
        filename: "index_bundle.js"
    },

    module: {
        loaders: [
            
                {   
                    test: /\.js$/,  exclude: /(node_modules|bower_components)/, 
                    loader: 'babel',
                    query:
                    {
                        presets:['es2015', 'react']
                    }
                }
        ]
    },

    plugins: [HtmlWebpackPluginConfig]
}
@@ -831,10 +831,69 @@
 nConfig%5D
+,%0A%0A    devServer : %7B%0A        historyApiFallback: true%0A    %7D
 %0A%7D

configure devServer 404 redirection to /