美文网首页
如何添加 fontawesome 字体文件

如何添加 fontawesome 字体文件

作者: Transnet2014 | 来源:发表于2017-04-19 18:50 被阅读11次

    返回导航

    #337

    First, you need install fontawesome through bower

    bower install fontawesome
    

    Next, you need add to your scss file this lines (please, check the paths if you
    change location of generator main.scss file):

    $fa-font-path: "../../bower_components/font-awesome/fonts";
    @import "../../bower_components/font-awesome/scss/font-awesome.scss";
    

    Finally, you need add this pipeline in gulp/build.js, in html task:

    .pipe($.replace('../../bower_components/font-awesome/fonts', '../fonts'))
    

    返回导航

    相关文章

      网友评论

          本文标题: 如何添加 fontawesome 字体文件

          本文链接:https://www.haomeiwen.com/subject/lmphzttx.html