Merge branch 'nuke-gzip' into 'develop'
Webpack: get rid of CompressionPlugin See merge request soapbox-pub/soapbox-fe!726
This commit is contained in:
commit
e1be629051
3 changed files with 1 additions and 16 deletions
|
@ -66,7 +66,6 @@
|
||||||
"browserslist": "^4.16.6",
|
"browserslist": "^4.16.6",
|
||||||
"cheerio": "^1.0.0-rc.10",
|
"cheerio": "^1.0.0-rc.10",
|
||||||
"classnames": "^2.2.5",
|
"classnames": "^2.2.5",
|
||||||
"compression-webpack-plugin": "^8.0.1",
|
|
||||||
"copy-webpack-plugin": "^9.0.1",
|
"copy-webpack-plugin": "^9.0.1",
|
||||||
"core-js": "^3.15.2",
|
"core-js": "^3.15.2",
|
||||||
"cryptocurrency-icons": "^0.17.2",
|
"cryptocurrency-icons": "^0.17.2",
|
||||||
|
|
|
@ -4,7 +4,6 @@ console.log('Running in production mode'); // eslint-disable-line no-console
|
||||||
const { merge } = require('webpack-merge');
|
const { merge } = require('webpack-merge');
|
||||||
const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer');
|
const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer');
|
||||||
const OfflinePlugin = require('@lcdp/offline-plugin');
|
const OfflinePlugin = require('@lcdp/offline-plugin');
|
||||||
const CompressionPlugin = require('compression-webpack-plugin');
|
|
||||||
const sharedConfig = require('./shared');
|
const sharedConfig = require('./shared');
|
||||||
|
|
||||||
module.exports = merge(sharedConfig, {
|
module.exports = merge(sharedConfig, {
|
||||||
|
@ -17,12 +16,6 @@ module.exports = merge(sharedConfig, {
|
||||||
},
|
},
|
||||||
|
|
||||||
plugins: [
|
plugins: [
|
||||||
new CompressionPlugin({
|
|
||||||
test: /\.(js|css|html|json|ico|svg|eot|otf|ttf|map|mp3|ogg|oga)$/,
|
|
||||||
exclude: [
|
|
||||||
'instance',
|
|
||||||
],
|
|
||||||
}),
|
|
||||||
// Generates report.html
|
// Generates report.html
|
||||||
new BundleAnalyzerPlugin({
|
new BundleAnalyzerPlugin({
|
||||||
analyzerMode: 'static',
|
analyzerMode: 'static',
|
||||||
|
@ -65,6 +58,7 @@ module.exports = merge(sharedConfig, {
|
||||||
'**/*.map',
|
'**/*.map',
|
||||||
'stats.json',
|
'stats.json',
|
||||||
'report.html',
|
'report.html',
|
||||||
|
'instance',
|
||||||
// any browser that supports ServiceWorker will support woff2
|
// any browser that supports ServiceWorker will support woff2
|
||||||
'**/*.eot',
|
'**/*.eot',
|
||||||
'**/*.ttf',
|
'**/*.ttf',
|
||||||
|
|
|
@ -3803,14 +3803,6 @@ compressible@~2.0.16:
|
||||||
dependencies:
|
dependencies:
|
||||||
mime-db ">= 1.40.0 < 2"
|
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:
|
compression@^1.7.4:
|
||||||
version "1.7.4"
|
version "1.7.4"
|
||||||
resolved "https://registry.yarnpkg.com/compression/-/compression-1.7.4.tgz#95523eff170ca57c29a0ca41e6fe131f41e5bb8f"
|
resolved "https://registry.yarnpkg.com/compression/-/compression-1.7.4.tgz#95523eff170ca57c29a0ca41e6fe131f41e5bb8f"
|
||||||
|
|
Loading…
Reference in a new issue