如何添加 fontawesome 字体文件

2017-04-19  本文已影响11人  Transnet2014

返回导航

#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'))

返回导航

上一篇下一篇

猜你喜欢

热点阅读