glyphicons not showing with sass bootstrap integration

后端 未结 14 1778
滥情空心
滥情空心 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 10:41

    In Laravel 5.4 what I did is

    mix.copy('node_modules/bootstrap-sass/assets/fonts/bootstrap/', 'public/fonts/bootstrap');
    

    And in resources/assets/sass/_variables.scss or app.scss

    $icon-font-path: '/fonts/bootstrap/';
    

提交回复
热议问题