text: const path = require('path');
  const HtmlWebpackPlugin = require('html-webpack-plugin');
  const PreloadWebpackPlugin = require('preload-webpack-plugin');
  
  module.exports = {
    mode: 'development',
    entry: './src/index.js',
    output: {
      path: path.resolve(__dirname, 'dist')
    },
    module: {
      rules: [
        {
          test: /\.html$/,
          use: [
            {
              loader: 'html-loader'
            }
          ]
        },
        {
          test: /\.css$/,
          use: ['style-loader', 'css-loader']
        },
        {
          test: /\.js$/,
          exclude: /node_modules/,
          use: [
            {
              loader: 'babel-loader'
            }
          ]
        },
        {
          test: /\.(png|svg|jpe?g|gif)$/,
          use: ['file-loader']
        },
        {
          test: /\.(woff|woff2|eot|ttf|otf)$/,
          use: ['file-loader']
        }
      ]
    },
    plugins: [
      new HtmlWebpackPlugin({
        template: './public/index.html'
      }),
      new PreloadWebpackPlugin({
        rel: 'preload',
        include: 'allAssets',
        as: 'font',
        fileWhitelist: [/\.ttf/]
      })
    ]
  };
  