Skip to content

Move the SCSS sheets into the Vite build - #327

Merged
itshypax merged 2 commits into
mainfrom
feat/scss-into-vite
Jul 16, 2026
Merged

Move the SCSS sheets into the Vite build#327
itshypax merged 2 commits into
mainfrom
feat/scss-into-vite

Conversation

@itshypax

Copy link
Copy Markdown
Collaborator

The stylesheets were the last piece of the old manual asset workflow: a sass CLI script with hardcoded path lists producing committed .css/.min.css pairs next to their sources, while Tailwind and the vendor bundles already ran through Vite. Now a fourth build pass (vite build --mode styles) compiles all ten sheets to public/assets/dist/<name>.css.

  • One build command (npm run build), one output directory, the CI asset check covers everything.
  • Template references move to the dist paths — two head components carried almost all of them (12 files total).
  • Generated css/min/map files leave the repo, .scss sources stay. Standalone CSS without a SCSS source (enotf-toast, enotf-modals, pages/calendar.css) untouched.
  • Pure-SCSS entries would emit empty JS stubs; a tiny plugin drops them from the bundle.
  • Side effect: Vite resolves the wallpaper url() in style.scss and emits it relative to the css file — fixes the dashboard background for subdirectory installs (was root-absolute).
  • Watch-Workflow: npx vite build --mode styles --watch.

cirs.css/dokumente.css had zero references anywhere but keep being built — possibly dead sheets, worth a separate look.

itshypax added 2 commits July 16, 2026 07:27
Badges, alerts and buttons in the core settings pages and the
knowledge-base templates still used Bootstrap utility classes that
only survive through the compat layer. They now use the existing
design-system pieces: ignis-chip (with status variants), ignis-alert
and ignis-btn. eNOTF keeps its own Bootstrap bundle on purpose.

The modal attributes (data-bs-toggle/-dismiss) and data-bs-theme stay
for now: four compat selectors still key off the theme attribute, so
those fall to the dialog migration.
The stylesheets were the last piece of the old manual asset workflow:
a sass CLI script with hardcoded path lists, producing committed
.css/.min.css pairs next to their sources, while Tailwind and the
vendor bundles already ran through Vite. Now a fourth build pass
(vite build --mode styles) compiles all ten sheets to
public/assets/dist/<name>.css - one build command, one output
directory, and the CI asset check covers everything.

Template references move from assets/css/*.min.css to the dist paths
(two head components carried almost all of them). The generated
css/min.css/map files leave the repo; the .scss sources stay put.
Standalone CSS without a SCSS source (enotf-toast, enotf-modals,
pages/calendar.css) is untouched.

Side effect: Vite now resolves the wallpaper url() in style.scss and
emits it relative to the css file, which fixes the background image
for subdirectory installs (it was root-absolute before).
@ef-sparky

ef-sparky Bot commented Jul 16, 2026

Copy link
Copy Markdown

✅ Alle Checks bestanden

57 Dateien geändert · +111 -13195

Übersicht

Check Status Details
Build (PHP 8.3 – 8.4) ✅ Bestanden
Unit Tests (8.3/8.4) ✅ Bestanden Keine Tests
Integration Tests ✅ Bestanden Keine Tests
Feature Tests (HTTP) ✅ Bestanden Keine Tests
Frontend Build ✅ Bestanden
Security Audit ✅ Bestanden
PHPStan ✅ Bestanden

Unit Tests

✅ 0 Tests bestanden.

Integration Tests

✅ 0 Tests bestanden.

Feature Tests (HTTP)

✅ 0 Tests bestanden.

Frontend Build

Assets in Sync mit Source (SCSS + Vite gebaut, kein Diff).

PHPStan – Statische Analyse

Keine Fehler gefunden.

Security Audit

Keine bekannten Schwachstellen.


Workflow-Log ansehen

@itshypax
itshypax merged commit 09a1497 into main Jul 16, 2026
10 checks passed
@itshypax
itshypax deleted the feat/scss-into-vite branch July 16, 2026 06:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant