Make possible to configurable style compiler constants #24246
Labels
area: core
Issues related to the framework runtime
core: stylesheets
feature: under consideration
Feature request for which voting has completed and the request is now under consideration
feature
Issue that requests a new feature
Milestone
I'm submitting a...
Current behavior
Compiler variable and attr is constant.
https://github.com/angular/angular/blob/master/packages/compiler/src/style_compiler.ts#L16
Expected behavior
Compiler variable and attr must have default values and possible to configurable.
What is the motivation / use case for changing the behavior?
Currently that constants is part of build js/css files and made files more large.
For example, statistics for my not very large project (
main.bundle.ts
1 MB)But, maybe I konw what I do and can replace this constatns to
☺
,☻
,♥
(just for example).This action will save 21 914 butes just for my example or more for bigger project with many css rules.
The text was updated successfully, but these errors were encountered: