Skip to content

Commit

Permalink
fix precompress
Browse files Browse the repository at this point in the history
  • Loading branch information
bastyen committed Apr 5, 2023
1 parent 0ca8f49 commit 69bf7d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions precompress.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ const precompress = async () => {
files.forEach(file => {
fs.writeFileSync(
`${file}.br`,
zlib.brotliCompressSync(file, {
zlib.brotliCompressSync(fs.readFileSync(file), {
params: { [zlib.constants.BROTLI_PARAM_QUALITY]: 11 },
}),
);

fs.writeFileSync(
`${file}.gz`,
zlib.gzipSync(file, {
zlib.gzipSync(fs.readFileSync(file), {
level: 9,
}),
);
Expand Down

0 comments on commit 69bf7d7

Please sign in to comment.