Static asset magnification for the Website service (#20)

This PR contains the work done for build-time optimization of the static assets served by the Website service. The production Docker image now ships minified JS/CSS and losslessly recompressed images, while the sources in the repository stay readable and un-minified.

Reviewed-on: rock-n-code/loud-amsterdam#20
Co-authored-by: Javier Cicchelli <javier@rock-n-code.com>
Co-committed-by: Javier Cicchelli <javier@rock-n-code.com>
This commit is contained in:
2026-07-19 03:02:17 +00:00
committed by javier
parent 79ecf311f4
commit 698cd60521
3 changed files with 55 additions and 2 deletions
+11
View File
@@ -105,6 +105,17 @@ db-reset: ## Stop and remove the local database instance and delete its data vol
--profile database down mariadb \
--volumes
# --- Assets minification ------------------------------------------------------
.PHONY: ast-minify
ast-minify: ## Preview the minified JS/CSS assets in .build/minified
@docker build \
--target assets-export \
--output .build/minified \
--file Dockerfile \
../..
@echo "Minified assets written to .build/minified"
# --- Registry deployment ------------------------------------------------------
.PHONY: img-check