Skip to content

Commit d223d1e

Browse files
clydinalan-agius4
authored andcommitted
refactor(@schematics/angular): increase new application anyComponentStyle budget thresholds
The 2kB/4kB warning/error thresholds for any component style within an application has now been increased to 4kB/8kB for warnings/errors respectively. This allows for more complex styles within a component while also reducing the likelihood of the budget rule being disabled or removed. The new limits still provide diagnostics for extreme size cases such as accidentally importing all Bootstrap or Material styles into an individual component. Such instances are a primary use case for the budget.
1 parent e40384e commit d223d1e

File tree

1 file changed

+2
-2
lines changed
  • packages/schematics/angular/application

1 file changed

+2
-2
lines changed

packages/schematics/angular/application/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,8 +204,8 @@ function addAppToWorkspaceFile(
204204
},
205205
{
206206
type: 'anyComponentStyle',
207-
maximumWarning: '2kB',
208-
maximumError: '4kB',
207+
maximumWarning: '4kB',
208+
maximumError: '8kB',
209209
},
210210
];
211211
} else {

0 commit comments

Comments
 (0)