text: var path = require('path');
  const HtmlWebPackPlugin = require('html-webpack-plugin');
  
  module.exports = {
      entry: ['babel-polyfill', './src/index.js'],
      output: {
          path: path.resolve(__dirname, 'dist'),
          filename: 'index_bundle.js',
          publicPath: '/',
      },
      module: {
          rules: [
              {
                  test: /\.(js|jsx)$/,
                  exclude: /node_modules/,
                  use: {
                      loader: 'babel-loader',
                  },
              },
              {
                  test: /\.html$/,
                  use: [
                      {
                          loader: 'html-loader',
                      },
                  ],
              },
              {
                  test: /\.js$/,
                  use: ['source-map-loader'],
                  enforce: 'pre',
              },
              {
                  test: /\.(jpg|png)$/,
                  use: {
                      loader: 'url-loader',
                  },
              },
          ],
      },
      devServer: {
          port: 3000,
          historyApiFallback: true,
      },
      plugins: [
          new HtmlWebPackPlugin({
              template: './src/index.html',
              filename: './index.html',
          }),
      ],
  };
  