text: var webpack = require('webpack');
  var ExtractTextPlugin = require('extract-text-webpack-plugin');
  
  module.exports = {
    devtool: 'source-map',
  
    entry: __dirname + "/client/index.js",
  
    output: {
      path: __dirname + '/static/dist/',
      filename: 'bundle.js',
    },
    
    resolve: {
      extensions: ['', '.js', '.jsx'],
    },
    
    module: {
      loaders: [
        {
          test: /\.css$/,
          loader: ExtractTextPlugin.extract('style','css?modules'),
        },
        {
          test: /\.jsx*$/,
          exclude: /node_modules/,
          loader: 'babel',
        },
         {
          test: /\.json$/,
          loader: 'json-loader'
        }
      ],
    },
  
    plugins: [
      new webpack.optimize.OccurenceOrderPlugin(),
      new webpack.DefinePlugin({
        'process.env': {
          'NODE_ENV': JSON.stringify('production'),
        }
      }),
      new webpack.optimize.UglifyJsPlugin({
        compressor: {
          warnings: false,
        }
      }),
      new ExtractTextPlugin("app.css"),
    ],
  };
  