-
Notifications
You must be signed in to change notification settings - Fork 310
glyphicons-halflings 404 #24
Comments
Agree, this is still an issue - not sure why it was closed. I've just started with yeoman, and this is not a good experience to have straight up. I'm still not sure what the solution is, even after having looked at the other threads. |
It's because the Bootstrap lib references $iconSpritePath: "../images/glyphicons-halflings.png";
$iconWhiteSpritePath: "../images/glyphicons-halflings-white.png"; |
It's similar to this, Yeoman forgets to bundle font-awesome and the sprite images for bootstrap yeoman/yeoman#419 While its not a huge stretch to manually copy resources, there seems to be a few people who would rather not. |
@shanemaiolo I agree, we should try to find a solution to that. @kevva since it's very popular we should try to find a workaround. Either in code or as a fallback with docs. If you have any thoughts about how we can resolve this, can you add a comment in yeoman/yeoman#419 |
@shanemaiolo, FontAwesome isn't a part of jlong/sass-twitter-bootstrap, open an issue over there. We should be able to handle the sprites for you though. @sindresorhus, the solution above works. To fix it we either need to bundle the sprites or trigger |
Hi all! AFAIK the fix by @kevva causes problems when there is a change to the glyphicons files of How about using the |
…. (Improvement to fix yeoman#24) If there is any change to the glyphicons files we would have to update them manually. This fix allows a user to simply update the bootstrap package via bower and everything else just works. This could also be used for syncing various other static files like the fonts of font-awesome. Signed-off-by: David Gstir <david@sigma-star.at>
This is still a problem when Sass with Compass isn't included. We can't set the After usemin has had it's way with it the font url in the bootstrap css are like 'url(../fonts/glyphicons-halflings-regular.ttf)' but the So rather than setting the copy: {
...
glyphicons: {
files:[
{
expand:true,
flatten:true,
src: '<%= yeoman.app %>/bower_components/bootstrap/dist/fonts/*',
dest: '<%= yeoman.dist %>/fonts/'
}
]
}
} Happy to tidy up into a PR if the solution sounds reasonable. |
To overcome this issue just copy paste fonts folder from bower_component/bootstrap/ to the dist/ directory. Hope this would help... |
Hi there,
I just ran a fresh
yo webapp && npm install && bower install
I tried adding an icon to index.html and got a 404 for this url:
http://localhost:9000/img/glyphicons-halflings.png
I noticed that there are a couple of closed issues related to this.
The text was updated successfully, but these errors were encountered: