我用bower来安装' font-awesome' css包。然后我将bower组件路径添加到我的html中:
@echo off
setlocal enabledelayedexpansion
:: Get the number of .o files from the dir listing
for /f "tokens=1" %%A in ('dir *.o^|find "File(s)"') do set o_files=%%A
:: Build a string with all of the .o files (up to 512 due to string length limitations)
for /L %%A in (1,1,!o_files!) do set "o_string=!o_string! compile_to_c%%A.o"
:: Run gcc and strip (remove the echos if your strings look correct)
echo gcc -Xlinker -no-as-needed !o_string! -x none
echo strip a.out
pause
当我运行<!-- Place favicon.ico and apple-touch-icon.png in the root directory -->
<!-- build:css(.) styles/vendor.css -->
<!-- bower:css -->
<link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap.css" />
<link rel="stylesheet" href="bower_components/animate.css/animate.css" />
<link rel="stylesheet" href="bower_components/bootstrap-duallistbox/src/bootstrap-duallistbox.css" />
<link rel="stylesheet" href="bower_components/font-awesome/css/font-awesome.min.css" />
<!-- endbower -->
<!-- endbuild -->
<!-- build:css(.tmp) styles/main.css -->
时,字体真棒样式表消失了!
我正在做一个由自耕农搭建的角形项目。
答案 0 :(得分:0)
所以我找到了解决方案。当构建运行时,该部分HTML将由bower和grunt自动填充。无论出于何种原因,font-awesome都不会填充该区域。相反,我使用了components-font-awesome:bower install components-font-awesome --save