text: 'use strict';
  
  var path = require('path');
  var webpack = require('webpack');
  var autoprefixer = require('autoprefixer');
  var precss = require('precss');
  var HtmlWebpackPlugin = require('html-webpack-plugin');
  
  module.exports = {
    entry: {
      app: [
        path.join(__dirname, 'client/index.js')
      ],
      vendor: ['react', 'react-dom', 'react-mdl', 'react-relay', 'react-router', 'react-router-relay']
    },
    output: {
      path: path.join(__dirname, 'build'),
      filename: '[name].js'
    },
    devtool: 'source-map',
    module: {
      loaders: [{
        test: /\.jsx?$/,
        loader: 'babel-loader',
        exclude: /node_modules/
      }, {
        test: /\.scss$/,
        loaders: ['style-loader', 'css-loader', 'postcss-loader']
      }, {
        test: /\.(png|jpg|jpeg|gif|svg|woff|woff2)$/,
        loader: 'url-loader?limit=10000&name=assets/[hash].[ext]'
      }]
    },
    postcss: function() {
      return [precss, autoprefixer];
    },
    plugins: [
      new webpack.optimize.DedupePlugin(),
      new webpack.optimize.OccurrenceOrderPlugin(),
      new webpack.optimize.CommonsChunkPlugin('vendor', 'vendor.js'),
      new webpack.DefinePlugin({
        'process.env': {
          NODE_ENV: JSON.stringify('production')
        }
      }),
      new webpack.optimize.UglifyJsPlugin({
        compress: {
          warnings: false,
          screw_ie8: true
        }
      }),
      new HtmlWebpackPlugin({
        title: 'George\'s job Listing',
        template: './client/index.html',
        mobile: true,
        inject: false
      })
    ]
  };
  
  