From 06ef1df92f4d8dd1231a60214640e4be97155043 Mon Sep 17 00:00:00 2001 From: Toshaan Bharvani Date: Thu, 13 Feb 2025 11:33:46 +0100 Subject: [PATCH] improve production build Signed-off-by: Toshaan Bharvani --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 993fad5..afab823 100644 --- a/Makefile +++ b/Makefile @@ -12,7 +12,7 @@ default all: build .PHONY: build build: - $(HUGO) --environment=production --minify --templateMetrics + HUGO_NUMWORKERMULTIPLIER=$(HUGO_NUMWORKERMULTIPLIER) HUGO_MEMORYLIMIT=$(HUGO_MEMORYLIMIT) $(HUGO) --environment=production --minify --templateMetrics --logLevel info @find public/ -name '*.html' ! -name '*.gz' -type f -exec sh -c "gzip -c -9 < {} > {}.gz" \; @find public/ -name '*.css' ! -name '*.gz' -type f -exec sh -c "gzip -c -9 < {} > {}.gz" \; @find public/ -name '*.js' ! -name '*.gz' -type f -exec sh -c "gzip -c -9 < {} > {}.gz" \; @@ -30,7 +30,7 @@ build-staging: .PHONY: test test: clean - HUGO_NUMWORKERMULTIPLIER=$(HUGO_NUMWORKERMULTIPLIER) HUGO_MEMORYLIMIT=$(HUGO_MEMORYLIMIT) $(HUGO) --environment=development --minify --printMemoryUsage --printPathWarnings --printUnusedTemplates --templateMetrics --templateMetricsHints + HUGO_NUMWORKERMULTIPLIER=$(HUGO_NUMWORKERMULTIPLIER) HUGO_MEMORYLIMIT=$(HUGO_MEMORYLIMIT) $(HUGO) --environment=development --minify --printMemoryUsage --printPathWarnings --printUnusedTemplates --templateMetrics --templateMetricsHints --logLevel debug .PHONY: draft draft: