使用ionic 4的离子选项卡式项目中缺少app.scss [英] Missing app.scss in ionic tabbed project using ionic 4
问题描述
我创建了一个ionic 4选项卡式项目.它没有创建文件/src/app/app.scss.我尝试手动创建文件,但未将其集成到项目中.在ionic 4中是否已用其他文件名替换了该文件?谢谢.
I created an ionic 4 tabbed project. It did not create the file /src/app/app.scss. I tried manually creating the file but it does not integrate into the project. Has the file been replaced with a different file name in ionic 4? Thank you.
更新#1
我发现一些信息,该文件应称为global.scss.我将我从app.scss创建的文件重命名为global.scss.那没有帮助.
I found some information that the file should be called global.scss. I renamed the file that I had created from app.scss to global.scss. That did not help.
推荐答案
我发现了问题!首先,ionic 4中的 app.scss 现在称为 global.scss .此外,文件 global.scss 已经存在于另一个文件夹中:
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
另一个提示:如果您想知道正在使用的全局样式文件,请打开文件 angular.json 并查看以下部分:
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"
}
]
这篇关于使用ionic 4的离子选项卡式项目中缺少app.scss的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!