SAP Spartacus 4.0 关于SSR CSS 处理逻辑的一些 warning 消息的处理
生活随笔
收集整理的這篇文章主要介紹了
SAP Spartacus 4.0 关于SSR CSS 处理逻辑的一些 warning 消息的处理
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
custom-file-input:lang(en)~.custom-file-label -> unmatched pseudo-class :lang
原因:混合導致的一些問題:默認 Bootstrap 4.3.1 樣式 + Angular 12.0 中引入的默認 CSS 優化器
解決方法:從 spartacus 中刪除所有樣式 → 從 angular.json 中為 storefrontapp 刪除整個數組“樣式”:[ … ]
如下圖所示:
問題2:
Unable to locate stylesheet https:/use.fontawesome.com/releases/v5.8.1/css/all.css
原因:the URL https://use.fontawesome.com/releases/v5.8.1/css/all.css defined in the default fontawesomeIconConfig in the storefront lib is not handled properly/
解決方法:覆蓋此配置 → 在 app.module 中提供:
更多Jerry的原創文章,盡在:“汪子熙”:
總結
以上是生活随笔為你收集整理的SAP Spartacus 4.0 关于SSR CSS 处理逻辑的一些 warning 消息的处理的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Node.js 环境下的 console
- 下一篇: 天谕手游业刹PVE怎么加点 业刹技能怎么