generator-gulp-angular icon indicating copy to clipboard operation
generator-gulp-angular copied to clipboard

bootstrap glyphicon font paths broken on build

Open adamkarb opened this issue 9 years ago • 2 comments

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 :)

image

adamkarb avatar Nov 13 '15 21:11 adamkarb

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

Swiip avatar Nov 18 '15 09:11 Swiip

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.

karolrynio avatar May 11 '16 18:05 karolrynio