generator-gulp-angular
generator-gulp-angular copied to clipboard
bootstrap glyphicon font paths broken on build
I know this is a question I've seen people ask about, but I'm using the latest generator and can't figure out the issue. This is the error I'm getting. I am using bootstrap-sass-official in this project, and haven't altered any of the code that comes with the project in regards to font-paths and gulp tasks. Any advice or referenced issues appreciated :)
Here's the theoretical mechanism, try check what's going wrong:
- We override the bower.json of bootstrap to reference the fonts
- We copy the fonts in the dist folder located by wiredep in the task fonts
- We adapt the relative urls in the css with a replace operation in the html task
I have the same bug. Bug is probably in invalid configuration or paths, because generated url to fonts is:
http://localhost:3000/bower_components/bower_components/bootstrap/fonts/glyphicons-halflings-regular.woff2
but should be:
http://localhost:3000/bower_components/bootstrap/fonts/glyphicons-halflings-regular.woff2
bower_components
part is twice in path.