I have an Angular CLI app and I'm using @import '~@angular/material/theming';
in the global styles.scss
. I also have a component where I would like to define a css class in that component's .scss file that uses some of the Angular Material typography:
@import '~@angular/material/theming';
$config: mat-typography-config();
.myClass {
font-size: mat-font-size($config, title);
font-weight: bold;
}
By importing ~@angular/material/theming
more than once in my application, will it include that css more than once and bloat my payload? Or is the Angular CLI compiler smart enough to handle this?