text: const path = require('path');
  
  const SRC_DIR = path.join(__dirname, '/client/src');
  const DIST_DIR = path.join(__dirname, '/client/dist');
  
  console.log('source dir: ', SRC_DIR);
  console.log('dist dir: ', DIST_DIR);
  
  module.exports = {
    entry: `${SRC_DIR}/index.jsx`,
    output: {
      filename: 'bundle.js',
      path: DIST_DIR,
      publicPath: '/assets/'
    },
    module: {
      rules: [
        {
          test: /\.jsx?$/,
          include: [
            SRC_DIR,
          ],
          loader: 'babel-loader',
          exclude: /node_modules/,
          options: {
            presets: [
              'react',
              'es2015',
              'stage-2',
            ],
            plugins: [
              'react-html-attrs',
              'transform-class-properties',
              'transform-decorators-legacy',
              'add-module-exports',
            ],
          },
        },
        {
          test: /\.css$/,
          use: ['style-loader', 'css-loader'],
        },
        {
          test: /\.csv$/,
          loader: 'csv-loader',
          options: {
            dynamicTyping: true,
            header: true,
            skipEmptyLines: true
          }
        }
      ],
    },
  };