var webpack = require('webpack');
module.exports = {
    entry: [
        './bin/www'
    ],
    output: {
        path: './build',
        filename: 'bundle.js'
    },
    module: {
        loaders: [
            { test: /\.js?$/, loaders: [ 'babel'], exclude:     /node_modules/ },
            { test: /\.js$/, exclude: /node_modules/, loader: 'babel-loader'},
        ]
    },
    resolve:{
        extensions:['','.js','.json']
    },
    plugins: [
        new webpack.NoErrorsPlugin()
    ]
};
