text: const path = require('path');
  const CopyWebpackPlugin = require('copy-webpack-plugin');
  const HtmlWebpackPlugin = require('html-webpack-plugin');
  const HtmlWebpackPluginConfig = new HtmlWebpackPlugin({
    template: './src/index.html',
    filename: 'index.html',
    inject: 'body',
  });
  
  module.exports = {
    entry: './src/entryPoint.js',
    output: {
      path: path.resolve('demo_dist'),
      filename: 'index_bundle.js',
      publicPath: '/',
    },
    module: {
      loaders: [
        { test: /\.js$/, loader: 'babel-loader', exclude: /node_modules/ },
        { test: /\.jsx$/, loader: 'babel-loader', exclude: /node_modules/ },
      ],
    },
    resolve: {
      extensions: ['.js', '.jsx', '.styl', '.css'],
      modules: ['node_modules'],
      alias: {
        components: path.resolve('./src/components'),
        features: path.resolve('./src/features'),
        theme: path.resolve('./src/theme'),
        utils: path.resolve('./src/utils'),
      },
    },
    devServer: {
      inline: true,
      historyApiFallback: true,
      proxy: {
        '/api': {
          target: 'http://localhost:5000',
          secure: false,
        },
      },
    },
    devtool: 'cheap-module-eval-source-map',
    plugins: [
      HtmlWebpackPluginConfig,
      new CopyWebpackPlugin([{ from: 'src/assets', to: 'assets' }]),
    ],
  };