Commit 05dc6b44 authored by Ruben ten Hove's avatar Ruben ten Hove
Browse files

perf: only fully minify if asked

parent a747b8f9
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: