fix(@angular-devkit/build-angular): inline critical font-face rules when using crittical css inlining

When critical font rules are not inlined it will cause blinking as during first render the fallback font will be rendered.

Related to https://github.com/angular/universal/issues/2002
This commit is contained in:
Alan Agius 2021-02-26 20:47:27 +01:00 committed by Charles
parent aa3ea885ed
commit 11b1d9c2d1

View File

@ -39,6 +39,7 @@ class CrittersExtended extends Critters {
mergeStylesheets: false,
preload: 'media',
noscriptFallback: true,
inlineFonts: true,
// tslint:disable-next-line: no-any
} as any);
}