const path = require('path');
const dotenv = require('dotenv');
const webpack = require('webpack');

dotenv.config({ silent: true });

module.exports = {
  entry: [
    'whatwg-fetch',
    './src/client/app.js'
  ],
  output: {
    path: './public/lib',
    filename: 'bundle.js'
  },
  module: {
    loaders: [
      {
        test: /\.js$/,
        loader: 'babel-loader',
        include: [
          path.resolve(__dirname, 'src')
        ],
        query: {
          presets: ['es2015']
        }
      }
    ]
  },
  plugins: [
    new webpack.EnvironmentPlugin([
      "IMAGE_RETRIEVER"
    ])
  ],
  devTool: 'source-map'
};

const dotenv = require('dotenv');
const webpack = require('webpack');

dotenv.config({ silent: true });

module.exports = {
  entry: [
    'whatwg-fetch',
    './src/client/app.js'
  ],
  output: {
    path: './public/lib',
    filename: 'bundle.js'
  },
  module: {
    loaders: [
      {
        test: /\.js$/,
        loader: 'babel-loader',
        query: {
          presets: ['es2015']
        }
      }
    ]
  },
  plugins: [
    new webpack.EnvironmentPlugin([
      "IMAGE_RETRIEVER"
    ])
  ],
  devTool: 'source-map'
};

Remove include that may be problematic on Azure Web Apps
Remove include that may be problematic on Azure Web Apps
