text: const webpack = require('webpack');
  const CompressionPlugin = require('compression-webpack-plugin');
  const HtmlWebpackPlugin = require('html-webpack-plugin');
  
  module.exports = {
    devServer: {
      host: '0.0.0.0',
      port: 8080
    },
    plugins: [
      new HtmlWebpackPlugin({
        template: 'index.html',
        minify: {
          collapseWhitespace: true,
          removeComments: true,
          sortClassName: true
        },
        hash: true,
      }),
      new webpack.DefinePlugin({
        'process.env': {
          'NODE_ENV': JSON.stringify('production')
        }
      }),
      new webpack.LoaderOptionsPlugin({
        minimize: true,
        debug: false
      }),
      new webpack.optimize.UglifyJsPlugin(),
      new CompressionPlugin({
        algorithm: "gzip",
        test: /\.js$|\.css$|\.html$/,
      })
    ]
  };