From 3566d4e096316ef1e7364bc116c3674b23218e6d Mon Sep 17 00:00:00 2001 From: Nikita Karamov Date: Sat, 15 Jul 2023 00:25:19 +0200 Subject: [PATCH 1/2] Update size-limit to use Brotli --- package.json | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 3a4ffc0..5cc3b1f 100644 --- a/package.json +++ b/package.json @@ -104,12 +104,14 @@ }, "size-limit": [ { - "limit": "7 KB", - "path": "./dist/shareon.min.css" + "limit": "6 KB", + "path": "./dist/shareon.min.css", + "brotli": true }, { - "limit": "1069 B", - "path": "./dist/shareon.es.js" + "limit": "1 KB", + "path": "./dist/shareon.es.js", + "brotli": true } ], "publishConfig": { From 9974a79c2a768872793f836212237e74be5256e7 Mon Sep 17 00:00:00 2001 From: Nikita Karamov Date: Sat, 15 Jul 2023 00:26:00 +0200 Subject: [PATCH 2/2] Update README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 0ed3e3a..72931aa 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ > Lightweight, stylish, and ethical share buttons -- **Small.** Dependency-free. CSS+JS bundle is only 6 KB minified and gzipped. +- **Small.** Dependency-free. CSS+JS bundle is only 6 KB minified and brotlied. - **Stylish.** Uses official vector logos and colours with no visual mess. - **Ethical.** Embeds no tracking code. JS is required only for the setup.