const Environment = require('../environment')
const webpack = require('webpack')
const CompressionPlugin = require('compression-webpack-plugin')

module.exports = class extends Environment {
  constructor() {
    super()

    this.plugins.set('UglifyJs', new webpack.optimize.UglifyJsPlugin({
      sourceMap: true,
      compress: {
        warnings: false
      },
      output: {
        comments: false
      }
    }))

    this.plugins.set('Compression', new CompressionPlugin({
      asset: '[path].gz[query]',
      algorithm: 'gzip',
      test: /\.(js|css|html|json|ico|svg|eot|otf|ttf)$/
    }))
  }

  toWebpackConfig() {
    const result = super.toWebpackConfig()
    result.devtool = 'source-map'
    result.stats = 'normal'
    return result
  }
}

@@ -215,16 +215,111 @@
 uper()%0A%0A
+    this.plugins.set('ModuleConcatenation', new webpack.optimize.ModuleConcatenationPlugin())%0A%0A
     this

Add ModuleConcatenation to production bundle