refactor(css): row 216 — sass is leading for ALL css files, not just plain.css
Previously only css/plain.css was compiled from sass/plain.sass; css/custom.css and css/fonts.css were hand-written. Now every theme stylesheet has a leading sass source: sass/plain.sass, sass/custom.sass, sass/fonts.sass (partials _*), compiled with 'sass --watch sass:css' (dart-sass 1.83.4 added as local devDependency; node_modules/package.json stay gitignored). css/*.css are build artifacts and remain the committed runtime files; sass/ stays developer-local. Recompiled output is semantically identical to the previous hand-written files (dart-sass normalization only: 2-space indent, double quotes, @charset). variants/export_public.sh step 0 now checks BOTH directions for every pair: stale css/<name>.css vs sass/<name>.sass aborts, and a css file without a sass source aborts; compiler resolved from PATH or node_modules/.bin/sass. .gitignore/README document the workflow. Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
parent
22c1f230b3
commit
756c0ec2d1
1 changed files with 158 additions and 130 deletions
8
.gitignore
vendored
8
.gitignore
vendored
|
|
@ -18,9 +18,11 @@
|
|||
/variants/leak-patterns.txt
|
||||
/variants/tests/
|
||||
|
||||
# sass/ sources are developer-only: they are compiled locally to css/plain.css
|
||||
# (which IS committed). LimeSurvey serves the committed css and never compiles
|
||||
# sass itself. The .sass files were purged from history with git filter-repo.
|
||||
# sass/ sources are developer-only and LEADING: every sass/*.sass (except _*
|
||||
# partials) is compiled locally to its css/<name>.css counterpart (which IS
|
||||
# committed — sass is leading, css is the build artifact). LimeSurvey serves
|
||||
# the committed css and never compiles sass itself. The .sass files were purged
|
||||
# from history with git filter-repo. Watcher: `sass --watch sass:css`.
|
||||
/sass/
|
||||
|
||||
# Source maps are artifacts of the local sass compile — not needed at runtime
|
||||
|
|
|
|||
Loading…
Reference in a new issue