Compress the assets.
This commit is contained in:
parent
47535fb096
commit
475a04c1d1
|
@ -17,6 +17,15 @@ steps:
|
||||||
else
|
else
|
||||||
hugo -e production -v -s
|
hugo -e production -v -s
|
||||||
fi
|
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:
|
trigger:
|
||||||
event:
|
event:
|
||||||
- push
|
- push
|
||||||
|
|
Loading…
Reference in New Issue