Twitter bootstrap 使用twitter引导的Yeoman mobile:缺少图标

Twitter bootstrap 使用twitter引导的Yeoman mobile:缺少图标,twitter-bootstrap,gruntjs,compass-sass,yeoman,Twitter Bootstrap,Gruntjs,Compass Sass,Yeoman,我使用带有twitter引导支持的yomobile构建了应用程序。但是我不能使用glyphicons,因为没有创建/styles/vendor/font文件夹(我知道glyphicons应该在/styles/vendor/font中,因为我可以在chrome网络选项卡中看到浏览器请求失败http://localhost:3333/styles/vendor/fonts/glyphiconshalflings-regular.woff) 实际上,图标保存在/bower\u components/b

我使用带有twitter引导支持的
yomobile
构建了应用程序。但是我不能使用glyphicons,因为没有创建
/styles/vendor/font
文件夹(我知道glyphicons应该在
/styles/vendor/font
中,因为我可以在chrome网络选项卡中看到浏览器请求
失败http://localhost:3333/styles/vendor/fonts/glyphiconshalflings-regular.woff

实际上,图标保存在
/bower\u components/bootstrap/dist/font
文件夹中。我可以将这些字体复制粘贴到
/styles/vendor/font
中,这样就可以了。但是约曼应该让我不用做额外的复制粘贴,赖特

所以问题是:有没有办法修改我的配置,使图标出现在
/styles/vendor/font
文件夹中

指南针:{
选项:{
sassDir:“/styles”,
cssDir:“.tmp/styles”,
generatedImagesDir:'.tmp/images/generated',
imagesDir:“/images”,
javascriptsDir:“/scripts”,
/*fontsDir:“/styles/fonts”*/
导入路径:'/bower_components',
httpImagesPath:“/images”,
httpGeneratedImagesPath:“/images/generated”,
httpFontsPath:“/styles/fonts”,
相对论集:假
},
地区:{},
服务器:{
选项:{
debugInfo:true
}
}
},

您可以尝试添加grunt contrib复制任务以自动化复制样式的过程

我认为,最好为此添加单独的任务:

grunt.registerTask('install', ['copy']);

在本任务中,您只需将字体样式从bower_components/bootstrap文件夹复制到/styles/vendor/fonts

中即可。谢谢,最后您做到了这一点。