Commit 953dce32 authored by Federico Falconieri's avatar Federico Falconieri
Browse files

Merge branch 'hoverht-master-patch-86719' into 'master'

perf: only fully minify if asked

See merge request ci/templates!21
parents f86a088e 05dc6b44
Loading
Loading
Loading
Loading
+20 −15
Original line number Diff line number Diff line
@@ -4,9 +4,14 @@ pages:
  image: registry.gitlab.com/notno/hugo
#  before_script:  # Add a before script to add an external theme, like this example
#    - git clone https://github.com/matcornic/hugo-theme-learn.git themes/hugo-theme-learn
  variables:
    MINIFY: "false"  # Further minify all files
  script:
    - hugo --minify
    - /minify.sh .
    - |
      if [ ${MINIFY} = "true" ]; then
        /minify.sh .
      fi
    - gzip -kr public
  artifacts:
    paths: