Font Awesome 5 Bundle via NPM

前端 未结 3 625
臣服心动
臣服心动 2020-12-25 14:46

I\'m trying to bundle only required Font Awesome 5 icons via webpack, but the icons are not replaced in the DOM.

  1. I\'ve added all required packages from the

3条回答
  •  借酒劲吻你
    2020-12-25 15:23

    Try to use

    fontawesome.library.add(faCheck);
    

    instead of

    fontawesome.icon(faCheck);
    

    If it does not work, please update your question with your DOM template, to see how it's defined in there.

提交回复
热议问题