diff options
author | Adam Johnson <me@adamj.eu> | 2022-02-04 17:53:44 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-04 10:53:44 -0700 |
commit | 4c0157432af9048788b4cbbbca602e707025892b (patch) | |
tree | 9843fd3c94451aac29d306b58fe9d7442a645026 /package.json | |
parent | defbb40bd799838eb18dff8239c0db0e026cc631 (diff) | |
download | htmx-4c0157432af9048788b4cbbbca602e707025892b.tar.gz htmx-4c0157432af9048788b4cbbbca602e707025892b.zip |
Use gzip level 9 compression (#788)
Level 9 is more compressed, and faster to decompress.
Before:
```
$ wc -c dist/htmx.min.js.gz
11615 dist/htmx.min.js.gz
```
After:
```
$ wc -c dist/htmx.min.js.gz
11596 dist/htmx.min.js.gz
```
Cor blimey, that's 19 bytes saved!
Diffstat (limited to 'package.json')
-rw-r--r-- | package.json | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/package.json b/package.json index db18f0ef..70c464ef 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "scripts": { "test": "mocha-chrome test/index.html", "test-types": "tsc --project ./jsconfig.json", - "dist": "cp -r src/* dist/ && npm run-script uglify && gzip -k -f dist/htmx.min.js > dist/htmx.min.js.gz && exit", + "dist": "cp -r src/* dist/ && npm run-script uglify && gzip -9 -k -f dist/htmx.min.js > dist/htmx.min.js.gz && exit", "www": "node scripts/www.js", "uglify": "uglifyjs -m eval -o dist/htmx.min.js dist/htmx.js" }, |