text: var webpack = require('webpack');
  
  var path = require('path');
  var objectAssign = require('object-assign');
  
  var NODE_ENV = process.env.NODE_ENV;
  
  var env = {
    production: NODE_ENV === 'production',
    staging: NODE_ENV === 'staging',
    test: NODE_ENV === 'test',
    development: NODE_ENV === 'development' || typeof NODE_ENV === 'undefined'
  };
  
  objectAssign(env, {
    build: (env.production || env.staging)
  });
  
  var publicPath = 'http://' + process.env.HOT_HOST_NAME + ':' + process.env.MAIN_PORT + '/client/';
  
  module.exports = {
    target: 'web',
  
    entry: './client/entry.jsx',
  
    output: {
      path: path.join(process.cwd(), '/client'),
      pathInfo: true,
      publicPath: publicPath,
      filename: 'main.js'
    },
  
    resolve: {
      modulesDirectories: [
        'web_modules',
        'node_modules',
        'client'
      ],
      extentions: ['js', 'jsx', 'scss']
    },
  
    plugins: [
      new webpack.DefinePlugin({
        __DEV__: env.development,
        __STAGING__: env.staging,
        __PRODUCTION__: env.production,
        __CURRENT_ENV__: '\'' + (NODE_ENV) + '\''
      })
    ],
  
    module: {
      preLoaders: [
        {test: /\.js$/, loader: 'eslint-loader', exclude: /node_modules/}
      ],
  
      loaders: [
        {test: /\.scss$/, loader: 'style!css!autoprefixer?browsers=last 2 version!sass?outputStyle=expanded'}
      ],
  
      noParse: /\.min\.js/
    }
  
  };
  