Add --noCache flag to hugo build #47
8
build.sh
8
build.sh
@ -2,4 +2,10 @@
|
|||||||
|
|
||||||
find ./ -type f -name '*.png' -not -path '*/.git/*' -exec sh -c 'cwebp -lossless $1 -o "${1%.png}.webp"' _ {} \;
|
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' {} \;
|
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 \
|
||||||
|
--noCache
|
||||||
|
Loading…
x
Reference in New Issue
Block a user