text: const webpack = require('webpack');
  const merge = require('webpack-merge');
  const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
  const OptimizeCSSAssetsPlugin = require('optimize-css-assets-webpack-plugin');
  const getConfiguration = require('./development');
  
  const mergeWithStrategy = merge.smartStrategy({
      plugins: 'prepend'
  });
  
  const configurationProdMode = async appSettings => mergeWithStrategy(await getConfiguration(appSettings), {webpack: {
          mode: 'production',
          devtool: false,
  
          optimization: {
              minimizer: [
                  new UglifyJsPlugin({
                      cache: true,
                      parallel: true,
                      uglifyOptions: {
                          output: {
                              beautify: false
                          }
                      }
                  }),
  
                  new OptimizeCSSAssetsPlugin({
                      cssProcessorOptions: {
                          discardEmpty: true,
                          discardComments: {
                              removeAll: true
                          }
                      }
                  })
              ]
          },
  
          plugins: [
              new webpack.DefinePlugin({
                  __PRODUCTION__: true
              })
          ]
      }});
  
  module.exports = configurationProdMode;
  