【问题标题】:How to include font awesome in a .net core 2.2 react-redux project如何在 .net core 2.2 react-redux 项目中包含很棒的字体
【发布时间】:2019-06-28 15:16:27
【问题描述】:

所以我用 .net core 2.2 react-redux (typescript) 创建了一个新项目 我想使用很棒的字体。

我该怎么做?

我尝试安装 npm 包并放入我的 boot-client.tsx 文件,但它不起作用

导入'../../node_modules/font-awesome/css/font-awesome.min.css';

【问题讨论】:

  • 您是如何使用 typescript 使用 .Net 核心创建 React 项目的?今天我创建了一个项目,但没有显示 .ts 或 .tsx 文件

标签: .net typescript react-redux font-awesome


【解决方案1】:

I think this can solve the problem

或者,我在我的项目中使用这种方式:查看 Redux 中的典型项目结构(例如 github 上的项目),您可以在 'common' 文件夹中使用 font-awesome 图标,然后从文件中导入。

【讨论】:

    猜你喜欢
    • 2013-10-14
    • 2019-02-05
    • 2013-02-05
    • 2017-09-26
    • 2020-07-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多