text: const path = require('path');
  const HtmlWebpackPlugin = require('html-webpack-plugin');
  
  const HtmlWebpackPluginConfig = new HtmlWebpackPlugin({
    template: './index.html',
    filename: 'index.html',
    inject: 'body'
  });
  
  module.exports = {
    entry: './pages/index.js',
    output: {
      path: path.resolve('dist'),
      filename: 'app.bundle.js'
    },
    module: {
      loaders: [
        { test: /\.jsx?$/, loader: 'babel-loader', exclude: /node_modules/ }
      ]
    },
    plugins: [HtmlWebpackPluginConfig],
  
    resolve: {
      extensions: ['.js', '.jsx']
    }
  };
  