text: const webpack = require('webpack');
  var path = require('path');
  const Dotenv = require('dotenv-webpack');
  var SRC_DIR = path.join(__dirname, '/client/src');
  var DIST_DIR = path.join(__dirname, '/client/dist');
  
  const common = {
    context: __dirname + '/client',
    module: {
      loaders: [
        {
          test: /\.jsx?$/,
          exclude: /node_modules/,
          loader: 'babel-loader',
          query: {
            presets: ['react', 'es2015', 'env', ]
          },
        },
        {
          test: /\.css$/,
          use: ['css-loader']
        }
      ],
    },
    plugins: [
      new Dotenv(),
      new webpack.DefinePlugin({
        'process.env.NODE_ENV' : JSON.stringify('development')
      })
    ]
  };
  
  const client = {
    entry:'./client.js',
    output: {
      path: __dirname + '/public',
      filename: 'app.js'
    }
  };
  
  const server = {
    entry: './server.js',
    target: 'node',
    output: {
      path: __dirname + '/public',
      filename: 'app-server.js',
      libraryTarget: 'commonjs-module'
    }
  };
  
  module.exports = [
    Object.assign({}, common, client),
    Object.assign({}, common, server)
  ]
  