text: var path = require('path');
  var webpack = require('webpack');
  var ExtractTextPlugin = require('extract-text-webpack-plugin');
  
  module.exports = {
    context: path.join(__dirname,'..','src'),
    devtool: 'eval',
    entry: {
      index: [
      'webpack-dev-server/client?http://localhost:3000',
      'webpack/hot/only-dev-server',
      './index.js'
    ],
      vendors: ['react','redux','react-redux','redux-react-router','axios','redux-thunk']
    },
    output: {
      path: path.join(__dirname,'..', 'dist'),
      filename: '[name].js',
      publicPath: '/static/'
    },
    plugins: [
      new webpack.HotModuleReplacementPlugin(),
      new ExtractTextPlugin('../dist/style.css')
    ],
    module: {
      loaders: [{
        test: /\.js$/,
        loaders: ['react-hot', 'babel'],
        exclude : /node_modules/,
        include: path.join(__dirname,'..','src')
      }, 
      {
        test: /\.css$/,
        loader: ExtractTextPlugin.extract('style-loader','css-loader'),
      },
      { test: /\.(png|woff|woff2|eot|ttf|svg)$/, loader: 'url-loader?limit=200000' }
      ]
    },
    resolve: {
      extensions: ['', '.react.js', '.js', '.jsx'],
      modulesDirectories: ['src', 'node_modules','styles']
    },
  };
  