Use Hugo cache directory
All checks were successful
Deploy to Server / deploy (push) Successful in 28s
All checks were successful
Deploy to Server / deploy (push) Successful in 28s
- Add a cache directory for Hugo builds. - This improves build times. - The cache is located in $PWD/hugo-cache.
This commit is contained in:
parent
9eac4366c9
commit
ccf423c907
2
build.sh
2
build.sh
@ -7,4 +7,4 @@ find . -type f -not -path '*/.git/*' -exec sed -i -e 's/\.png/\.webp/g' {} \;
|
||||
find . -type f -not -path '*/.git/*' -exec sed -i -e 's/\.jpg/\.webp/g' {} \;
|
||||
find . -type f -not -path '*/.git/*' -exec sed -i -e 's/\.jpeg/\.webp/g' {} \;
|
||||
|
||||
hugo -s . -d /var/www/rogs.me/ --minify
|
||||
hugo -s . -d /var/www/rogs.me/ --minify --cacheDir $PWD/hugo-cache
|
||||
|
Loading…
x
Reference in New Issue
Block a user