glyphicons not showing with sass bootstrap integration

后端 未结 14 1695
滥情空心
滥情空心 2021-01-17 10:01

I used this tutorial to integrate bootstrap in my project:

https://laravel-news.com/2015/10/setup-bootstrap-sass-with-laravel-elixir/

This places an app.css

相关标签:
14条回答
  • 2021-01-17 11:02
    • Look into developer tools of your browser watch the path.
    • In mine, it was public/fonts/glyphicons-halflings-regular.ttf I downloaded those fonts manually placed them there.
    • And it worked!
    0 讨论(0)
  • 2021-01-17 11:02

    Try something like:

    var gulp = require('gulp');
    
    gulp.task('fonts', function() {
       gulp.src('.node_modules/bootstrap-sass/assets/fonts/bootstrap/fonts/*.{ttf,woff,eof,svg,woff2}')
       .pipe(gulp.dest('public/css/fonts'));
    });
    

    and then add

    mix
    //other scripts
    .task('fonts')
    
    0 讨论(0)
提交回复
热议问题