fix: CSS layers were silently dropped by postcss-import

postcss-import requires ALL @import statements before any rules.
The :root {} override block between Open Props import and layer
imports caused all 11 layer files to be silently dropped — only
Open Props variables made it through (29KB of definitions, zero
actual styles).

Fix: move :root overrides after all imports. Add explicit PostCSS
build step to deploy.sh (Hugo Pipes runs from a temp dir that
breaks relative paths anyway).

Result: 102KB compiled CSS = Open Props + all ASW layers.
This commit is contained in:
Vigilio Desto 2026-04-10 17:53:17 +02:00
parent f8821c226d
commit 8a9cfc22bb
Signed by: vigilio
GPG key ID: 159D6AD58C8E55E9
3 changed files with 12 additions and 8 deletions

View file

@ -4,5 +4,6 @@ set -euo pipefail
cd ~/projects/asw
git pull origin main --ff-only
npm ci --prefer-offline 2>/dev/null
npx postcss assets/css/asw.css -o assets/css/asw-built.css
hugo
echo "[$(date -u +%Y-%m-%dT%H:%M:%SZ)] Deploy complete" >> /tmp/asw-deploy.log