After installing bulma through NPM, how can I refer it in my project

前端 未结 7 1812
北荒
北荒 2021-02-02 06:15

I have pulled in bulma in my project through :

$ npm install bulma

After that, how can I refer to it in my pages. I really don\'t know how to

7条回答
  •  暗喜
    暗喜 (楼主)
    2021-02-02 06:27

    That is really unevident. If you want to get bulma work with fontawesome5 via npm, minimum working deps (for now) are:

    npm i -S bulma @fortawesome/fontawesome @fortawesome/fontawesome-free-solid
    

    then needed to be initialized like this:

    import fontawesome from '@fortawesome/fontawesome'
    import solid from '@fortawesome/fontawesome-free-solid'
    import 'bulma/css/bulma.css'
    
    fontawesome.library.add(solid)
    

    More details can be found here: https://fontawesome.com/how-to-use/use-with-node-js

提交回复
热议问题