更新时间:2021-12-24 23:18:52
原因:混合导致的一些问题:默认 Bootstrap 4.3.1 样式 + Angular 12.0 中引入的默认 CSS 优化器
解决方法:从 spartacus 中删除所有样式 → 从 angular.json 中为 storefrontapp 删除整个数组“样式”:[ … ]
如下图所示:
问题2:
provideConfig({ icon: {resources: [ {type: IconResourceType.TEXT} ] } })
原因: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 中提供:
provideConfig({ icon: {resources: [ {type: IconResourceType.TEXT} ] } })