randylien / generator-react-gulp-browserify

A Yeoman Generator for facebook's React library. It includes gulp, browserify, livereload and famous official Twitter bootstrap Sass version
422 stars 60 forks source link

No glyphicons in dist #60

Open dionsnoeijen opened 9 years ago

dionsnoeijen commented 9 years ago

Hi, I'm struggling with this issue. There are no glyphicons in the dist folder when watching.

I found this in the gulpfile:

require('main-bower-files')

It's in the font tast. I have no main-bower-files anywhere in the project so I suspect something is going wrong.

Hopefully you have some clue what's going on here. I like this package but it's a showstopper for me :).

randylien commented 8 years ago

main-bower-files should install automatically when project is created or you can try npm install in your project and it should install main-bower-files package.

ebhoren commented 8 years ago

Add this to your project bower.json file. "overrides": { "bootstrap-sass-official": { "main": [ "./assets/stylesheets/_bootstrap.scss", "./assets/javascripts/bootstrap.js", "./assets/fonts/bootstrap/glyphicons-halflings-regular.eot", "./assets/fonts/bootstrap/glyphicons-halflings-regular.svg", "./assets/fonts/bootstrap/glyphicons-halflings-regular.ttf", "./assets/fonts/bootstrap/glyphicons-halflings-regular.woff", "./assets/fonts/bootstrap/glyphicons-halflings-regular.woff2" ] } }