From acba411c3aeab5ca7e40860799b9b49c2817c750 Mon Sep 17 00:00:00 2001 From: Harvey Tindall Date: Wed, 14 May 2025 21:11:44 +0100 Subject: [PATCH] build: fix constant re-build of css tailwind command taking part-bundle and turning it into v3bundle didn't do anything when no changes occurred, so v3bundle kept on being left untouched, and therefore with an old timestamp. part-bundle and v3bundle are both deleted before CSS is built, so the tailwind command always generates a new file. --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 1e4b2be..6e5b2e8 100644 --- a/Makefile +++ b/Makefile @@ -170,6 +170,7 @@ $(CSS_FULLTARGET): $(TYPESCRIPT_TARGET) $(VARIANTS_TARGET) $(ALL_CSS_SRC) $(wild $(info copying fonts) cp -r node_modules/remixicon/fonts/remixicon.css node_modules/remixicon/fonts/remixicon.woff2 $(DATA)/web/css/ $(info bundling css) + rm -f $(CSS_TARGET) $(CSS_FULLTARGET) $(ESBUILD) --bundle css/base.css --outfile=$(CSS_TARGET) --external:remixicon.css --external:../fonts/hanken* --minify npx tailwindcss -i $(CSS_TARGET) -o $(CSS_FULLTARGET) $(TAILWIND) @@ -206,7 +207,7 @@ $(COPY_TARGET): $(INLINE_TARGET) $(STATIC_SRC) $(LANG_SRC) $(CONFIG_BASE) cp -r lang $(DATA)/ cp LICENSE $(DATA)/ -BUILDDEPS := $(DATA) $(CONFIG_DEFAULT) $(EMAIL_TARGET) $(COPY_TARGET) $(SWAGGER_TARGET) +BUILDDEPS := $(DATA) $(CONFIG_DEFAULT) $(EMAIL_TARGET) $(COPY_TARGET) $(SWAGGER_TARGET) $(INLINE_TARGET) $(CSS_FULLTARGET) $(TYPESCRIPT_TARGET) precompile: $(BUILDDEPS) COMPDEPS =