text: // const {resolve} = require('path');
  // const merge = require('webpack-merge');
  // const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
  // const HtmlWebpackPlugin = require('html-webpack-plugin');
  
  // const commonConfig = require('./webpack.config.common');
  
  // module.exports = merge(commonConfig, {
  //   mode: 'production',
  //   entry: [`webpack-hot-middleware/client?http://localhost:${process.env.HTTP_PORT}&reload=true`],
  //   plugins: [
  //     new UglifyJsPlugin({
  //       parallel: true,
  //       extractComments: true
  //     }),
  //     new HtmlWebpackPlugin({
  //       hash: true,
  //       inject: true,
  //       template: resolve(__dirname, '..', 'src', 'client', 'index.html'),
  //       //favicon: resolve(__dirname, '..', 'src', 'client', 'static', 'favicon.png'),
  //       minify: {
  //         removeComments: true,
  //         collapseWhitespace: true,
  //         removeRedundantAttributes: true,
  //         useShortDoctype: true,
  //         removeEmptyAttributes: true,
  //         removeStyleLinkTypeAttributes: true,
  //         keepClosingSlash: true,
  //         minifyJS: true,
  //         minifyCSS: true,
  //         minifyURLs: true
  //       }
  //     })
  //   ]
  // });
  
  const {resolve} = require('path');
  const webpack = require('webpack');
  const merge = require('webpack-merge');
  const HtmlWebpackPlugin = require('html-webpack-plugin');
  const HtmlWebpackHarddiskPlugin = require('html-webpack-harddisk-plugin');
  
  const commonConfig = require('./webpack.config.common');
  
  module.exports = merge(commonConfig, {
    mode: 'production',
    entry: [`webpack-hot-middleware/client?http://localhost:${process.env.HTTP_PORT}&reload=true`],
    output: {
      hotUpdateMainFilename: 'hot-update.[hash:6].json',
      hotUpdateChunkFilename: 'hot-update.[hash:6].js'
    },
    devtool: 'cheap-module-eval-source-map',
    plugins: [
      new webpack.HotModuleReplacementPlugin(),
      new webpack.NamedModulesPlugin(),
      new HtmlWebpackPlugin({
        inject: true,
        template: resolve(__dirname, '..', 'src', 'client', 'index.html'),
        //favicon: resolve(__dirname, '..', 'src', 'client', 'static', 'favicon.png'),
        alwaysWriteToDisk: true
      }),
      new HtmlWebpackHarddiskPlugin({
        outputPath: resolve(__dirname, '..', 'build', 'client')
      })
    ]
  });
  