Sha256: 037cca8e613583f5f6a29fc30688d874606f68a6f7d14ce9f8c7a359fff31972
Contents?: true
Size: 911 Bytes
Versions: 5
Compression:
Stored size: 911 Bytes
Contents
const webpack = require('webpack') const CompressionPlugin = require('compression-webpack-plugin') const Environment = require('../environment') module.exports = class extends Environment { constructor() { super() this.plugins.append('ModuleConcatenation', new webpack.optimize.ModuleConcatenationPlugin()) this.plugins.append('UglifyJs', new webpack.optimize.UglifyJsPlugin({ sourceMap: true, mangle: { safari10: true }, compress: { warnings: false, comparisons: false }, output: { comments: false, ascii_only: true } })) this.plugins.append('Compression', new CompressionPlugin({ asset: '[path].gz[query]', algorithm: 'gzip', test: /\.(js|css|html|json|ico|svg|eot|otf|ttf)$/ })) this.config.merge({ devtool: 'nosources-source-map', stats: 'normal' }) } }
Version data entries
5 entries across 5 versions & 2 rubygems