如何添加 fontawesome 字体文件

返回导航

#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 字体文件)