-
Notifications
You must be signed in to change notification settings - Fork 1.4k
dist: 404 on glyphicons-halflings-regular.woff #665
Comments
For some reason, my minified CSS file imports the font using the absolute URL instead of the relative URL that is in the non minified file: src:url(/bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.eot) |
I have got the same problem |
I have got the same problem, a fresh install of the angular generator prepared with the 'grunt' command gives 404 errors for the fonts if the 'dist' folder is served by a webserver!!! |
I have the same problem. It did not happen in previous version. Only in version 0.8.0 |
This is pretty annoying... I have to manually edit the minified CSS file after each build. Guess I could write a task that does this for me but I'm sure there has to be a "cleaner" way to fix this. |
I had the same issue, I fixed this by modifying the usemin: {
html: ['<%= yeoman.dist %>/{,*/}*.html'],
css: ['<%= yeoman.dist %>/styles/{,*/}*.css'],
options: {
assetsDirs: ['<%= yeoman.dist %>'],
patterns: {
css: [
[/(\/bower_components\/bootstrap\/dist\/fonts)/g, 'god help me', function(match) {
return match.replace('/bower_components/bootstrap/dist/fonts', '../fonts');
}]
]
}
}
}, |
@olsn thanks, I will use that fix for now although it's not very elegant :) |
Please help to verify the fixes resolve the issues you have been having. You will need to test using the latest git code. Here are the instructions on how to do that:
Let me know if you have any issues by replying here or opening a new issue. |
Hey, I followed your steps, ran
|
Hm, actually none of the font files are in the dist directory, neither in the app generated following your instructions nor in my app $ find dist -name 'glyphicons-halflings-regular.*' |
@leikind please open a new issue please with your exact steps. |
Fix handling of Bootstrap fonts. This correctly loads the fonts in `grunt serve` as well as `grunt serve:dist`. This should hopefully close all the PR's and issues related to Bootstrap fonts. Also removes styles being duplicated in a the output CSS file. This includes a potentially breaking change in that `root` of **cssmin** has been reverted (removed). Closes yeoman#552 Fixes yeoman#638 Fixes yeoman#645 Closes yeoman#661 Fixes yeoman#662 Partially closes yeoman#664 Fixes yeoman#665 Fixes yeoman#667
@olsn You saved me thx. I use the generator-angular version 0.8. |
@coderDem the latest is fixed |
I'm using this generator but updated bootstrap to
"bootstrap": "~3.1.1"
. The problem is when Igrunt build
it seems the CSS file tries to findglyphicons-halflings-regular.woff
in bower_components/ instead of fonts/. How can I fix this?Here's the full HTTP error:
The text was updated successfully, but these errors were encountered: