text: const path = require('path');
  const HtmlWebpackPlugin = require('html-webpack-plugin');
  
  module.exports = {
    entry: './src/index.js',
    mode: 'development',
  
    plugins: [
      new HtmlWebpackPlugin({
        template: './src/index.html',
      }),
    ],
  
    module: {
      rules: [{
        test: /\.css$/i,
        use: ['style-loader', 'css-loader'],
      }],
    },
  
    devtool: 'inline-source-map',
    output: {
      filename: 'main.js',
      path: path.resolve(__dirname, 'dist'),
      clean: true,
    },
    experiments: {
      topLevelAwait: true,
    },
  };