Skip to content

Change how the size of the site is calculated in CI

Achilleas Pipinellis requested to merge ci-gzip-refactor into master

In !791 (diffs) we added support for gzipped files, so that they are served by browsers that support it (faster load times).

In !843 (diffs) I added some echos and size comparison for before/after compressing/minifying, but it was a bit misleading.

Changes in this MR:

  • Change the wording of the output
  • First minify, then gzip, so that the resulting .gz file is smaller

Output before:

Size before gzipping 497.5M	public/
Size after gzipping 556.3M	public/
Size after minifying 392.3M	public/

Output after (numbers may differ):

Size before minifying and gzipping: ..... 497.5M
Size after minifying: ................... 392.3M
Size after gzipping: .................... 556.3M

Merge request reports