text: const path = require('path');
  const TerserPlugin = require('terser-webpack-plugin');
  const CopyWebpackPlugin = require('copy-webpack-plugin');
  
  module.exports = {
    mode: 'production',
    output: {
      filename: 'bundle.min.js'
    },
    devtool: 'eval-source-map',
    performance: {
      maxEntrypointSize: 900000,
      maxAssetSize: 900000
    },
    optimization: {
      minimizer: [
        new TerserPlugin({
          terserOptions: {
            output: {
              comments: false
            }
          }
        })
      ]
    },
    plugins: [
      new CopyWebpackPlugin({
        patterns: [
          {
            from: path.resolve(__dirname, '../assets'),
            to: path.resolve(__dirname, '../dist/assets')
          }
        ]
      })
    ]
  };
  