From bbebf7964d8ff0e5556e1dddc6a43a7df3d37db0 Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Thu, 27 Nov 2025 12:51:16 +0100 Subject: [PATCH] =?UTF-8?q?SuiteCRM:=20Add=20Legacy=20Theme=20SCSS?= =?UTF-8?q?=E2=86=92CSS=20build=20step=20(pscss=20via=20PHP)=20to=20fix=20?= =?UTF-8?q?missing=20legacy=20UI=20styles.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See related ChatGPT conversation: https://chatgpt.com/share/69283b1f-20b0-800f-9f91-3da963470558x --- roles/web-app-suitecrm/templates/Dockerfile.j2 | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/roles/web-app-suitecrm/templates/Dockerfile.j2 b/roles/web-app-suitecrm/templates/Dockerfile.j2 index 6dc4e988..de3d1d9c 100644 --- a/roles/web-app-suitecrm/templates/Dockerfile.j2 +++ b/roles/web-app-suitecrm/templates/Dockerfile.j2 @@ -76,12 +76,16 @@ WORKDIR /var/www/html RUN apt-get update && apt-get install -y nodejs npm \ && corepack enable && corepack prepare yarn@4.5.1 --activate -WORKDIR /var/www/html - RUN yarn install --immutable \ && yarn merge-angular-json \ && yarn build +# Legacy theme SCSS -> CSS +RUN set -eux; \ + php ./vendor/bin/pscss -s compressed \ + public/legacy/themes/suite8/css/Dawn/style.scss \ + > public/legacy/themes/suite8/css/Dawn/style.css + # Copy entrypoint COPY {{ SUITECRM_ENTRYPOINT_SCRIPT_HOST_REL }} {{ SUITECRM_ENTRYPOINT_SCRIPT_DOCKER }} RUN chmod +x {{ SUITECRM_ENTRYPOINT_SCRIPT_DOCKER }}