We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a42a5d commit 9fe4fe1Copy full SHA for 9fe4fe1
src/material/schematics/ng-add/fonts/material-fonts.ts
@@ -26,15 +26,12 @@ export function addFontsToIndex(options: Schema): Rule {
26
throw new SchematicsException('No project index HTML file could be found.');
27
}
28
29
- const preconnect = `<link rel="preconnect" href="https://fonts.gstatic.com">`;
30
const fonts = [
31
'https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500&display=swap',
32
'https://fonts.googleapis.com/icon?family=Material+Icons',
33
];
34
35
projectIndexFiles.forEach(indexFilePath => {
36
- appendHtmlElementToHead(host, indexFilePath, preconnect);
37
-
38
fonts.forEach(font => {
39
appendHtmlElementToHead(host, indexFilePath, `<link href="${font}" rel="stylesheet">`);
40
});
0 commit comments