text: const HtmlWebPackPlugin = require('html-webpack-plugin');
  const path = require('path');
  
  module.exports = {
    mode: 'development',
    entry: ['./public/index.js'],
    module: {
      rules: [
        {
          test: /\.js(x?)$/,
          use: {
            loader: 'babel-loader',
            options: {
              extends: './.babelrc',
            },
          },
        },
        {
          test: /\.s?css$/,
          use: ['style-loader', 'css-loader', 'sass-loader'],
        },
      ],
    },
    output: {
      path: path.resolve(__dirname, 'dist'),
      filename: 'index.js',
      publicPath: '/',
    },
    resolve: {
      extensions: ['.js', '.jsx'],
    },
    plugins: [
      new HtmlWebPackPlugin({
        template: path.resolve(__dirname, 'public/index.html'),
        filename: 'index.html',
      }),
    ],
    devServer: {
      compress: true,
      port: 3400,
      hot: true,
    },
  };
  