LoginSignup
1
1

More than 5 years have passed since last update.

laravel5.3 bootstrap-sassでglyphiconsが読み込めない対応

Posted at

laravel5.3の環境になります。

デフォルトのgulpfileに以下を追加

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

全体的にはこんな感じ

const elixir = require('laravel-elixir');

require('laravel-elixir-vue-2');

/*
 |--------------------------------------------------------------------------
 | Elixir Asset Management
 |--------------------------------------------------------------------------
 |
 | Elixir provides a clean, fluent API for defining some basic Gulp tasks
 | for your Laravel application. By default, we are compiling the Sass
 | file for our application, as well as publishing vendor resources.
 |
 */

elixir(mix => {
    mix.sass('index.scss')
        .copy('node_modules/bootstrap-sass/assets/fonts/bootstrap/','public/fonts/bootstrap')
        .webpack('app.js');
});

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1