update hugo build options

Signed-off-by: Toshaan Bharvani <toshaan@vantosh.com>
master
Toshaan Bharvani 5 days ago
parent e18cba82dd
commit ba115c4276

@ -1,6 +1,8 @@
#!Makefile

HUGO=hugo-extended
HUGO_NUMWORKERMULTIPLIER=64
HUGO_MEMORYLIMIT=32
BUILDNAME:=$(shell git rev-parse --abbrev-ref HEAD)
BASEURL:=$(shell basename `pwd` | sed 's/_/./g')
BRANCHES:=$(shell git branch -r | sed 's/origin\///g' | sed 's/pr\//pr-/' | sed '/HEAD/d' | sed '/master/d' | sed '/main/d')
@ -28,7 +30,7 @@ build-staging:

.PHONY: test
test: clean
$(HUGO) --environment=development --minify --templateMetrics --templateMetricsHints --memstats hug_mem_log
HUGO_NUMWORKERMULTIPLIER=$(HUGO_NUMWORKERMULTIPLIER) HUGO_MEMORYLIMIT=$(HUGO_MEMORYLIMIT) $(HUGO) --environment=development --minify --printMemoryUsage --printPathWarnings --printUnusedTemplates --templateMetrics --templateMetricsHints

.PHONY: draft
draft:

@ -22,6 +22,14 @@ enableEmoji = true
noJSConfigInAssets = false
# useResourceCacheWhen = 'always'
writeStats = true
[build.buildStats]
enable = true
disableClasses = false
disableIDs = false
disableTags = false
[[build.cacheBusters]]
source = '(postcss|tailwind)\.config\.js'
target = '(css|styles|scss|sass)'

[outputs]
home = [ "HTML" , "RSS" ]
@ -141,20 +149,20 @@ enableEmoji = true
[caches]
[caches.assets]
dir = ':resourceDir/_gen'
maxAge = "5m"
maxAge = -1
[caches.getcsv]
dir = ':cacheDir/:project'
maxAge = "5m"
maxAge = -1
[caches.getjson]
dir = ':cacheDir/:project'
maxAge = "5m"
dir = ':cacheDir/:project'
maxAge = -1
ttl = 300
[caches.getresource]
dir = ':cacheDir/:project'
maxAge = "5m"
maxAge = -1
[caches.images]
dir = ':resourceDir/_gen'
maxAge ="5m"
maxAge = -1
[caches.modules]
dir = ':cacheDir/modules'
maxAge = "5m"
maxAge = -1

Loading…
Cancel
Save