text: const path = require('path')
  
  module.exports = {
    context: __dirname,
    entry: './js/index.jsx',
    devtool: 'eval',
    output: {
      path: path.join(__dirname, '/public'),
      filename: 'bundle.js',
      publicPath: '/public/'
    },
    devServer: {
      publicPath: '/public/',
      historyApiFallback: true
    },
    resolve: {
      extensions: ['.js', '.jsx', '.json'],
      alias: {
        react: 'preact-compat',
        'react-dom': 'preact-compat'
      }
    },
    stats: {
      colors: true,
      reasons: true,
      chunks: true
    },
    module: {
      rules: [
        {
          enforce: 'pre',
          test: /\.jsx?$/,
          loader: 'eslint-loader',
          exclude: /node_modules/
        },
        {
          test: /\.json$/,
          loader: 'json-loader'
        },
        {
          include: [
            path.resolve(__dirname, 'js'),
            path.resolve('node_modules/preact-compat/src')
          ],
          test: /\.jsx?$/,
          loader: 'babel-loader'
        },
        {
          test: /\.css$/,
          use: [
            'style-loader',
            {
              loader: 'css-loader',
              options: { url: false }
            }
          ]
        }
      ]
    }
  }
  