Hi,
I’m running Ionic CLI v4.2.1.
I’ve added the following to my home.page.scss file:
@import url("http://fonts.googleapis.com/css?family=Comfortaa:400,700");
.titleText {
font-size: 2.0em;
font-family: 'Comfortaa', sans-serif;
}
and the accompanying home.page.html code is:
<p class="titleText">My Title</p>
When I debug the PWA locally with ionic serve myProject
, the text in question shows up with the correct font, but when I deploy the PWA, the Google font is gone.
Deployment commands:
ng add @angular/pwa
ionic build --prod
(then upload the newly created 'www' directory)
Any help is appreciated.
Thanks!
Ryan