I found the problem! First of all app.scss is now called global.scss in ionic 4. Also, the file global.scss already existed in another folder:
/src/global.scss
So I deleted the file I had created:
/src/app/global.scss
Another tip: If you want to know what global style file you are using, open the file angular.json and view the section:
"styles": [
{
"input": "src/theme/variables.scss"
},
{
"input": "src/global.scss"
}
]
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…