text: var path = require('path');
  var HTMLWebpackPlugin = require('html-webpack-plugin');
  
  module.exports = {
      entry: __dirname + '/src/index.js',
      output: {
          filename: 'bundle.js',
      },
      module: {
          rules: [
              {
                  test: /\.js$/,
                  exclude: /node_modules/,
                  use: {
                    loader: 'babel-loader',
                    options: {
                      presets: ['@babel/preset-env', '@babel/preset-react'],
                      plugins: ['@babel/plugin-proposal-class-properties'],
                    }
                  }
                }
          ]
      },
      plugins: [
          new HTMLWebpackPlugin({
              template: path.join(__dirname, '/src/index.html'),    
          }),
      ],
      devServer: {
          contentBase: __dirname + '/src/index.html',
          compress: true,
          port: 2424,
        }
  };
  