text: const path = require('path');
  
  const SRC_DIR = path.join(__dirname, '/client/src');
  const DIST_DIR = path.join(__dirname, '/client/public');
  
  module.exports = {
    entry: `${SRC_DIR}/index.js`,
    output: {
      filename: 'bundle.js',
      path: DIST_DIR,
    },
    module: {
      loaders: [
        {
          test: /\.css$/,
          loader: 'style-loader',
        },
        {
          test: /\.css$/,
          loader: 'css-loader',
          query: {
            modules: true,
            localIdentName: '[name]__[local]___[hash:base64:5]',
          },
        },
        {
          test: /\.js?/,
          include: SRC_DIR,
          loader: 'babel-loader',
          query: {
            presets: ['react', 'es2017'],
            plugins: ["transform-object-rest-spread"],
          },
        },
      ],
    },
  };
  