refactor(css): #6 后续阶段——@layer 级联 + token 化 + 行尾治理
- 引入 @layer ecommerce-core,standalone 覆盖层不再依赖 !important(全站 !important 7812→967)
This commit is contained in:
@@ -70,9 +70,9 @@ console.log(
|
||||
console.log("");
|
||||
|
||||
// Exit non-zero if total !important exceeds a budget threshold.
|
||||
// Current baseline: ~7795. Set budget slightly above to allow incremental work
|
||||
// while preventing uncontrolled growth.
|
||||
const IMPORTANT_BUDGET = 7820;
|
||||
// Post-@layer refactoring baseline: ~970 (formerly ~7812).
|
||||
// Budget set to 2000 to prevent regression while allowing controlled growth.
|
||||
const IMPORTANT_BUDGET = 2000;
|
||||
if (totals.important > IMPORTANT_BUDGET) {
|
||||
console.error(
|
||||
`FAIL: !important count ${totals.important} exceeds budget ${IMPORTANT_BUDGET}. ` +
|
||||
|
||||
Reference in New Issue
Block a user