Commit d82b3c1
committed
Refactor PostCSS config: trim content globs and variable safelist
Content globs: remove **/*.js (redundant with TS source) and **/*.html
(matched nothing), remove **/*.scss (defines CSS rather than consuming it),
add **/*.ts as the reliable selector source alongside **/*.templ.
Variable safelist: PurgeCSS tracks variable usage exclusively within the
CSS it processes, not via content file scanning. The six variables that
were over-specified survive automatically because they appear in var()
expressions inside kept rules in _overrides.scss and country-map.scss.
Only --bs-primary needs explicit safelisting as it is solely consumed via
getPropertyValue() in country-map.ts and never referenced in any CSS
var() expression.1 parent 5cddc65 commit d82b3c1
1 file changed
Lines changed: 5 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
21 | 16 | | |
22 | 17 | | |
23 | 18 | | |
| |||
0 commit comments