text: module.exports = {
    entry: './app/app.jsx',
    output: {
      path: __dirname,
      filename: './public/bundle.js'
    },
    resolve: {
      root: __dirname,
      alias: {
        Main: 'app/components/Main.jsx',
        Nav: 'app/components/Nav.jsx',
        AllNews: 'app/components/AllNews.jsx',
        TechNews: 'app/components/TechNews.jsx',
        WorldNews: 'app/components/WorldNews.jsx',
        NewsApi: 'app/api/NewsApi.js'
      },
      extensions: ['', '.js', '.jsx']
    },
    module: {
      loaders: [
        {
          loader: 'babel-loader',
          query: {
            presets: ['react', 'es2015','stage-0']
          },
          test: /\.jsx?$/,
          exclude: /(node_modules|bower_components)/
        }
      ]
    }
  };
  