From a392e761eaab7cb9467c186f922cb6c4de772870 Mon Sep 17 00:00:00 2001 From: Eliot Berriot <contact@eliotberriot.com> Date: Sat, 30 Mar 2019 22:37:25 +0100 Subject: [PATCH] Added gzip compression --- .gitlab-ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5cceead2..176be893 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -18,6 +18,8 @@ pages: # ugly hack from https://gitlab.com/gitlab-org/gitlab-pages/issues/23#note_57499396 # until Gitlab Pages has better support for SPA - cp public/index.html public/404.html + # Gzip compression, cf https://webd97.de/post/gitlab-pages-compression/ + - gzip -k -6 $(find public -type f) cache: key: front_node_modules paths: -- GitLab