How can I add Font Awesome to my Aurelia project using npm?

前端 未结 8 2148
梦谈多话
梦谈多话 2020-11-30 08:31

I have been following the Contact Manager tutorial and would like to add Font Awesome to the project. Here\'s what I have done so far:

  • npm insta
8条回答
  •  暗喜
    暗喜 (楼主)
    2020-11-30 09:10

    Funny I was trying to get the same thing working this morning. This is all I had to do in my aurelia.json dependencies for it to work:

          {
            "name": "font-awesome",
            "path": "../node_modules/font-awesome/",
            "main": "",
            "resources": [
              "css/font-awesome.min.css"
            ]
          },
    

    Then in my html I had:

    
    

提交回复
热议问题