Angular 12 应用程序 Azure 应用程序服务(Windows)不渲染任何 CSS。本地工作正常
我在 Angular 13 应用程序中遇到了一个问题。当我将它部署到基于 Windows 的 azure 应用程序服务时,它似乎没有呈现任何类型的 CSS。这个特定的应用程序使用 tailwinds 作为 CSS“引擎”。
奇怪的是它在 Azure 中运行。我做了一些小的增强,进行了 ng 构建并将代码复制到 Azure 中的开发应用程序服务,现在它根本无法正确渲染......似乎缺少 CSS。我附上了几张主页登录/页面的屏幕截图(一张工作,一张不工作)。
我检查了页面加载,没有404错误。我过去遇到过一些 MIME 类型问题,所以我将它们添加到我的 web.config 中,但没有成功。
我什至将代码回滚到之前工作的源代码库并部署它......现在它遇到了相同的渲染问题。这告诉我它可能是我的azure应用程序服务中的一个配置项。从昨晚开始它一直在工作,但我弄坏了一些东西,但无法弄清楚。
关于我可以去哪里看有什么想法吗?谢谢你!
埃里克
I am struggling with an issue in my Angular 13 app. When I deploy it to my windows based azure app service, it doesn't seem to render ANY sort of CSS. This particular app uses tailwinds as the CSS "engine".
The odd thing is that it was working in Azure. I did a couple of minor enhancements, did an ng build and copied the code to my dev app service in Azure, and now its not rending correctly at all...seems to be missing the CSS. I attached a couple screen shots of the home login/page (one working and one not working).
I inspected the page load, and there are no 404 errors. I have ran into some MIME type issues in the past, so I added those to my web.config with no luck.
I even rolled back the code to the previously working source code base and deployed it...and now it is having the same rending issue. This tells me that it might be a configuration item in my azure app service. It was working as of last night and I broke something and can't figure it out.
Any ideas as to where I could look? Thank you!
Eric
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
谢谢用户 Anand Sowmithiran - Stack Overflow 和 用户 Eric Elliston - Stack Overflow。将您的建议作为答案发布以帮助其他社区成员。
参考文献: Angular 和 部署 Angular使用本地 Git (CD) 到 Azure 应用服务 (PaaS) 的 8+ 应用程序 |通过德雷克斯索罗 |中等
Thank you User Anand Sowmithiran - Stack Overflow and User Eric Elliston - Stack Overflow. Posting your suggestions as an answer to help other community members.
References: Angular and Deploy Angular 8+ Application to Azure App Service(PaaS) using Local Git(CD) | by Drexsolo | Medium