text: const path = require('path');
  const { merge } = require('webpack-merge');
  const common = require('./webpack.common.js');
  const { CleanWebpackPlugin } = require('clean-webpack-plugin');
  const MiniCssExtractPlugin = require('mini-css-extract-plugin');
  
  module.exports = merge(common, {
      mode: 'production',
      output: {
          filename: '[name].bundle.js',
          path: path.resolve(__dirname, 'dist'),
          clean: true,
      },
      plugins: [new MiniCssExtractPlugin(), new CleanWebpackPlugin({})],
      module: {
          rules: [
              {
                  test: /\.css$/i,
                  use: [MiniCssExtractPlugin.loader, 'css-loader'],
              },
          ],
      },
  });
  