Skip to content

Commit

Permalink
Compress static HTML/XML (#19437)
Browse files Browse the repository at this point in the history
  • Loading branch information
steverep authored Jan 17, 2024
1 parent 8f43cae commit 4046534
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion build-scripts/gulp/compress.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ const zopfliOptions = { threshold: 150 };

const compressDist = (rootDir) =>
gulp
.src([`${rootDir}/**/*.{js,json,css,svg}`])
.src([
`${rootDir}/**/*.{js,json,css,svg,xml}`,
`${rootDir}/{authorize,onboarding}.html`,
])
.pipe(zopfli(zopfliOptions))
.pipe(gulp.dest(rootDir));

Expand Down

0 comments on commit 4046534

Please sign in to comment.