var path    = require('path');
var webpack = require('webpack');
var merge   = require('webpack-merge');
var pkg     = require('./package.json');

var ROOT_PATH = path.resolve(__dirname);
var TARGET = process.env.npm_lifecycle_event;

var common = {
  entry: path.resolve(ROOT_PATH, 'main.jsx'),

  output: {
    path: path.resolve(ROOT_PATH, './'),
    filename: 'bundle.js'
  },

  resolve: {
    extensions: ['', '.js', '.jsx']
  },
}

if (TARGET === 'start') {
  module.exports = merge(common, {
    devtool: 'eval-source-map',

    module: {
      loaders: [
        {
          test: /\.jsx?$/,
          loaders: ['react-hot-loader', 'babel?stage=1'],
          include: path.resolve(ROOT_PATH, 'components'),
          exclude: path.resolve(ROOT_PATH, 'node_modules')
        }
      ]
    },

    devServer: {
      colors: true,
      historyApiFallback: true,
      hot: true,
      inline: true,
      progress: true
    },

    plugins: [
      new webpack.HotModuleReplacementPlugin(),
    ]
  });
}

if (TARGET === 'build') {
  module.exports = merge(common, {
    devtool: 'source-map',

    module: {
      loaders: [
        {
          test: /\.jsx?$/,
          loaders: ['babel?stage=1'],
          include: path.resolve(ROOT_PATH, 'components'),
          exclude: path.resolve(ROOT_PATH, 'node_modules')
        }
      ]
    },
  });
}

@@ -656,66 +656,8 @@
 '%5D,%0A
-          include: path.resolve(ROOT_PATH, 'components'),%0A
     
@@ -1149,66 +1149,8 @@
 '%5D,%0A
-          include: path.resolve(ROOT_PATH, 'components'),%0A
     

Remove "include" key in webpack.config.js