Update size-limit to use Brotli

See: https://github.com/kytta/shareon/pull/69

nice.
pull/70/head
Nikita Karamov 2023-07-15 00:28:51 +02:00 committed by GitHub
commit f0018aeaf0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 5 deletions

View File

@ -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.

View File

@ -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": {