Swiip / generator-gulp-angular

Yeoman generator for AngularJS with GulpJS [UNMAINTAINED next iteration is FountainJS]
http://fountainjs.io
3.72k stars 665 forks source link

404 not found error for bootstrap fonts #1095

Open ufoscout opened 8 years ago

ufoscout commented 8 years ago

Hi all,

we created a new project from scratch using generator-gulp-angular 1.1.0. When the application is started using "gulp serve", the browser throws a "404 not found error" for these resources: http://localhost:3000/fonts/bootstrap/glyphicons-halflings-regular.woff2 http://localhost:3000/fonts/bootstrap/glyphicons-halflings-regular.woff http://localhost:3000/fonts/bootstrap/glyphicons-halflings-regular.ttf

The same error appear with:

gulp build
gulp serve:dist

In fact, in the "dist" folder, the missing files are not in the "dist/fonts/bootstrap" subfolder but in the "dist/fonts". If we manually copy the files from "dist/fonts" to "dist/fonts/bootstrap" the issue disappear.

We use typescript, sass, ui-bootstrap, no html template engines, node 5.10.1, npm 3.8.3, Ubuntu 16.04.

maximdresvyankin commented 8 years ago

I have the same error. Are you fix it?

YuriZaliznyak commented 8 years ago

browser expects font files at locations with doubled "bower_components" in path, e.g. at

http://localhost:3001/bower_components/bower_components/bootstrap/fonts/glyphicons-halflings-regular.woff2

i do not have any solution at the moment.

d0d0 commented 8 years ago

Hi, i changed @icon-font-path: '../../bower_components/bootstrap/fonts/'; to @icon-font-path: '../../bootstrap/fonts/'; in index.less file and works fine. It is not solving main problem of course.

eduardosanzb commented 8 years ago

any solution buddies?

shersial commented 7 years ago

$icon-font-path: "./../bootstrap-sass/assets/fonts/bootstrap/"; change above path to below working fine $icon-font-path: "/bower_components/bootstrap-sass/assets/fonts/bootstrap/";

shersial commented 7 years ago

open build.js .pipe($.replace('../../bower_components/bootstrap-sass/assets/fonts/bootstrap/', '../fonts/')) i thing change to .pipe($.replace('/bower_components/bootstrap-sass/assets/fonts/bootstrap/', '../fonts/'))

Henry0422 commented 6 years ago

shersial's solution works for me.