From 999a20534d6c3f8589745c042c3b3351d14feb23 Mon Sep 17 00:00:00 2001 From: Dirk Heilig Date: Thu, 18 Jan 2024 18:09:45 +0100 Subject: [PATCH] make minifier more kompatible, make automated dev-build --- Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index c45c2e6..4074d9c 100644 --- a/Makefile +++ b/Makefile @@ -1,16 +1,17 @@ .PHONY: build minify clean release deploy_test +BASEURL ?= https://c3re.de release: build minify build: clean - hugo --gc --minify --cleanDestinationDir + hugo --gc --minify --cleanDestinationDir -b "${BASEURL}" --enableGitInfo --panicOnWarning clean: rm -rf public dist minify: dist build - minify -a -r -o dist/ public/. -q --exclude "public/js/jquery-3.7.1.min.js" + minify -a -r -o dist/ public/. -q --exclude "public/js/jquery-3.7.1.min.js" --html-keep-document-tags cp -rp public/js/jquery-3.7.1.min.js dist/public/js/jquery-3.7.1.min.js mv dist/public/* dist/ rm -rf dist/public @@ -18,5 +19,6 @@ minify: dist build dist: mkdir dist -deploy_test: release +deploy_test: + make BASEURL=https://c3retest.shnbk.de release rsync -rv --delete dist/* shnbk.de:domains/c3retest.shnbk.de/htdocs \ No newline at end of file