Skip to content

Commit

Permalink
chore: gzip max compression
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnnyFangJr authored Jan 14, 2022
1 parent 43a4dc8 commit ab8c729
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utils/get-size.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ export const getSize = (

export const getGzipSize = (
code: string | Buffer,
) => zlib.gzipSync(code).length;
) => zlib.gzipSync(code, { level: zlib.constants.Z_BEST_COMPRESSION }).length;

0 comments on commit ab8c729

Please sign in to comment.