text: var path = require('path');
  var config = require('../config')
  
  module.exports = {
    entry: {
      index: [
        // 'eventsource-polyfill', //兼容ie
        // 'webpack-hot-middleware/client?reload=true', //看上面
        './src/index'
      ]
    },
    output: {
      path: config.build.assetsRoot,
      filename: '[name].js',
      publicPath: process.env.NODE_ENV === 'production'
        ? config.build.assetsPublicPath
        : config.dev.assetsPublicPath
    },
    resolve: {
      alias: {
        react: "anujs/dist/ReactIE.js",
        "react-dom": "anujs/dist/ReactIE.js"
      }
    },
    module: {
      loaders: [{
        test: /\.js$/,
        exclude: /node_modules/,
        loader: 'babel-loader'
      }, {
        test: /\.css$/,
        loader: 'style-loader!css-loader?modules'
      }],
      postLoaders: [{
        test: /\.js$/,
        loader: "es3ify-loader"
      }]
    },
  }