From 7540570ff57c91131371fc4c67509d957db4ab6e Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Mon, 6 Sep 2021 17:50:31 -0500 Subject: [PATCH] Webpack: get rid of CompressionPlugin --- package.json | 1 - webpack/production.js | 8 +------- yarn.lock | 8 -------- 3 files changed, 1 insertion(+), 16 deletions(-) diff --git a/package.json b/package.json index 47be78235..018088f2d 100644 --- a/package.json +++ b/package.json @@ -66,7 +66,6 @@ "browserslist": "^4.16.6", "cheerio": "^1.0.0-rc.10", "classnames": "^2.2.5", - "compression-webpack-plugin": "^8.0.1", "copy-webpack-plugin": "^9.0.1", "core-js": "^3.15.2", "cryptocurrency-icons": "^0.17.2", diff --git a/webpack/production.js b/webpack/production.js index b5d14ac40..989ae4225 100644 --- a/webpack/production.js +++ b/webpack/production.js @@ -4,7 +4,6 @@ console.log('Running in production mode'); // eslint-disable-line no-console const { merge } = require('webpack-merge'); const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer'); const OfflinePlugin = require('@lcdp/offline-plugin'); -const CompressionPlugin = require('compression-webpack-plugin'); const sharedConfig = require('./shared'); module.exports = merge(sharedConfig, { @@ -17,12 +16,6 @@ module.exports = merge(sharedConfig, { }, plugins: [ - new CompressionPlugin({ - test: /\.(js|css|html|json|ico|svg|eot|otf|ttf|map|mp3|ogg|oga)$/, - exclude: [ - 'instance', - ], - }), // Generates report.html new BundleAnalyzerPlugin({ analyzerMode: 'static', @@ -65,6 +58,7 @@ module.exports = merge(sharedConfig, { '**/*.map', 'stats.json', 'report.html', + 'instance', // any browser that supports ServiceWorker will support woff2 '**/*.eot', '**/*.ttf', diff --git a/yarn.lock b/yarn.lock index 3148a65cc..64f1e2151 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3803,14 +3803,6 @@ compressible@~2.0.16: dependencies: mime-db ">= 1.40.0 < 2" -compression-webpack-plugin@^8.0.1: - version "8.0.1" - resolved "https://registry.yarnpkg.com/compression-webpack-plugin/-/compression-webpack-plugin-8.0.1.tgz#13b34403029760e66007f0bac8cf892a2009a3f4" - integrity sha512-VWDXcOgEafQDMFXEnoia0VBXJ+RMw81pmqe/EBiOIBnMfY8pG26eqwIS/ytGpzy1rozydltL0zL6KDH9XNWBxQ== - dependencies: - schema-utils "^3.0.0" - serialize-javascript "^6.0.0" - compression@^1.7.4: version "1.7.4" resolved "https://registry.yarnpkg.com/compression/-/compression-1.7.4.tgz#95523eff170ca57c29a0ca41e6fe131f41e5bb8f"