|
|
|
@ -7,7 +7,6 @@ const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer'); |
|
|
|
|
const OfflinePlugin = require('offline-plugin'); |
|
|
|
|
const UglifyJsPlugin = require('uglifyjs-webpack-plugin'); |
|
|
|
|
const CompressionPlugin = require('compression-webpack-plugin'); |
|
|
|
|
const zopfli = require('@gfx/zopfli'); |
|
|
|
|
const { output } = require('./configuration'); |
|
|
|
|
const sharedConfig = require('./shared'); |
|
|
|
|
|
|
|
|
@ -55,9 +54,6 @@ module.exports = merge(sharedConfig, { |
|
|
|
|
plugins: [ |
|
|
|
|
new CompressionPlugin({ |
|
|
|
|
filename: '[path].gz[query]', |
|
|
|
|
algorithm(input, compressionOptions, callback) { |
|
|
|
|
return zopfli.gzip(input, compressionOptions, callback); |
|
|
|
|
}, |
|
|
|
|
cache: true, |
|
|
|
|
test: /\.(js|css|html|json|ico|svg|eot|otf|ttf|map)$/, |
|
|
|
|
}), |
|
|
|
|