Skip to content

Commit 916356a

Browse files
authored
Use maximum gzip compression (#1126)
* Use maximum gzip compression * Revert extra changes * Remove extra code used when testing brotli compression * Remove extra space on unrelated changes
1 parent 41a8416 commit 916356a

File tree

2 files changed

+1795
-1801
lines changed

2 files changed

+1795
-1801
lines changed

tools/cdata.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ function writeHtmlGzipped(sourceFile, resultFile) {
7676
}
7777

7878
html = adoptVersionAndRepo(html);
79-
zlib.gzip(html, function (error, result) {
79+
zlib.gzip(html, { level: zlib.constants.Z_BEST_COMPRESSION }, function (error, result) {
8080
if (error) {
8181
console.warn(error);
8282
throw error;

0 commit comments

Comments
 (0)