const WebpackMerge = require('webpack-merge');
const CommonConfig = require('./webpack.common.js');

module.exports = WebpackMerge(CommonConfig, {
  entry: {
    'app': [
      'react-hot-loader/patch',
      './src/index'
    ],
  },
  output: {
    filename: '[name].js'
  },
  devServer: {
    proxy: {
      "/api": {
        target: "http://localhost:3000",
        pathRewrite: { "^/api": "" }
      }
    }
  }
});

const WebpackMerge = require('webpack-merge');
const CommonConfig = require('./webpack.common.js');

module.exports = WebpackMerge(CommonConfig, {
  devtool: 'cheap-module-eval-source-map',
  entry: {
    'app': [
      'react-hot-loader/patch',
      './src/index'
    ],
  },
  output: {
    filename: '[name].js'
  },
  devServer: {
    proxy: {
      "/api": {
        target: "http://localhost:3000",
        pathRewrite: { "^/api": "" }
      }
    }
  }
});

Switch to cheap-module-eval-sourcemap for source maps
Switch to cheap-module-eval-sourcemap for source maps
