Add hugo cache directory
- Use a cache directory for hugo builds. - This improves build speed by caching hugo assets. - The cache directory is located in $PWD/hugo-cache.
This commit is contained in:
parent
2c4ce38359
commit
c47c2cda75
2
build.sh
2
build.sh
@ -2,4 +2,4 @@
|
||||
|
||||
find ./ -type f -name '*.png' -not -path '*/.git/*' -exec sh -c 'cwebp -lossless $1 -o "${1%.png}.webp"' _ {} \;
|
||||
find . -type f -not -path '*/.git/*' -exec sed -i -e 's/\.png/\.webp/g' {} \;
|
||||
hugo -s . -d /var/www/fr.yams.media/ --minify --cleanDestinationDir --gc --verbose
|
||||
hugo -s . -d /var/www/fr.yams.media/ --minify --cleanDestinationDir --gc --verbose --cacheDir $PWD/hugo-cache
|
||||
|
Loading…
x
Reference in New Issue
Block a user