module.exports = {
    entry: {
        app: './src/init.js'
    },
    output: {
        path: __dirname + '/dist',
        filename: 'bundle.js'
    },
    module: {
        loaders: [{
            test: /\.js$/,
            exclude: /node_modules/,
            loader: 'babel',
            query: { presets: [ 'es2015', 'react' ] }
        },
        {
            test: /\.css$/,
            loader: 'style-loader!css-loader'
        }]
    },
    devtool: 'source-map'
};

module.exports = {
    entry: {
        app: __dirname + '/src/init.js'
    },
    output: {
        path: __dirname + '/dist',
        filename: 'bundle.js'
    },
    module: {
        loaders: [{
            test: /\.js$/,
            exclude: /node_modules/,
            loader: 'babel',
            query: { presets: [ 'es2015', 'react' ] }
        },
        {
            test: /\.css$/,
            loader: 'style-loader!css-loader'
        }]
    },
    devtool: 'source-map'
};

Use __dirname for source dir
Use __dirname for source dir
