Sha256: b44b8e05bbe9efca30e901f8ff5449e5acf5bc51cc43f1c15a93ab8ead9c6d22
Contents?: true
Size: 1.11 KB
Versions: 11
Compression:
Stored size: 1.11 KB
Contents
const webpack = require('webpack') const CompressionPlugin = require('compression-webpack-plugin') const UglifyJsPlugin = require('uglifyjs-webpack-plugin') const Base = require('./base') module.exports = class extends Base { constructor() { super() this.plugins.append('ModuleConcatenation', new webpack.optimize.ModuleConcatenationPlugin()) this.plugins.append( 'UglifyJs', new UglifyJsPlugin({ parallel: true, cache: true, sourceMap: true, uglifyOptions: { ie8: false, ecma: 8, warnings: false, mangle: { safari10: true }, compress: { warnings: false, comparisons: false }, output: { 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
11 entries across 11 versions & 2 rubygems