Compress the assets.
This commit is contained in:
parent
47535fb096
commit
475a04c1d1
|
@ -17,6 +17,15 @@ steps:
|
|||
else
|
||||
hugo -e production -v -s
|
||||
fi
|
||||
|
||||
- name: Compress-the-Assets
|
||||
image: cibuilds/hugo:0.62.1
|
||||
commands: |
|
||||
for TARGET in `find public/ -type f | egrep "\.(css|js|png|jpg|JPG|PNG|CSS|JS)$"`
|
||||
do
|
||||
gzip -c ${TARGET} > ${TARGET}.gz
|
||||
done
|
||||
|
||||
trigger:
|
||||
event:
|
||||
- push
|
||||
|
|
Loading…
Reference in New Issue