From ed2de835f03f4545777cce3d06b8a09fd2175246 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomek=20Wytr=C4=99bowicz?= Date: Tue, 12 Oct 2021 16:19:49 +0200 Subject: [PATCH 1/2] Decrease bundlewatch `maxSize`s, Set `index.js` bundle size to 150% of median JS file size from https://httparchive.org/reports/page-weight#bytesJs. Set other `*.js` size, to twice the size of the biggest one. --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 2f57ea2a4c..5195e7b7c7 100644 --- a/package.json +++ b/package.json @@ -104,11 +104,11 @@ "files": [ { "path": "./js/build/*.js", - "maxSize": "3 kB" + "maxSize": "2.3 kB" }, { "path": "./js/build/index.js", - "maxSize": "3 mB" + "maxSize": "743 kb" }, { "path": "./js/build/*.css", From b71db6c9b2bc36cdca9695e1f8d387de286a36cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomek=20Wytr=C4=99bowicz?= Date: Wed, 13 Oct 2021 12:02:30 +0200 Subject: [PATCH 2/2] Decrease bundlewatch `maxSize`s, Set them to 120% of the biggest file (rounding down). --- package.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 5195e7b7c7..3f66048e3b 100644 --- a/package.json +++ b/package.json @@ -104,23 +104,23 @@ "files": [ { "path": "./js/build/*.js", - "maxSize": "2.3 kB" + "maxSize": "1.3 kB" }, { "path": "./js/build/index.js", - "maxSize": "743 kb" + "maxSize": "457 kb" }, { "path": "./js/build/*.css", - "maxSize": "1 kB" + "maxSize": "364 B" }, { "path": "./js/build/index.css", - "maxSize": "10 kB" + "maxSize": "8 kB" }, { "path": "./google-listings-and-ads.zip", - "maxSize": "12 mB", + "maxSize": "11.8 mB", "compression": "none" } ],