0

I have a Laravel application. I downloaded an admin_template and integrated it into my app. I use Font Awesome with CDN in my admin-template, and it works no problem.

In the front pages of the application, I can't use Font Awesome. I tried all the way, (downloaded, CDN used, etc.) but no luck. Can anybody help me?

I tried this also https://stackoverflow.com/a/43819770/9145012

I'm using Font Awesome 4.7.

Thanks.

Karl Hill
  • 12,937
  • 5
  • 58
  • 95
Ozal Zarbaliyev
  • 566
  • 6
  • 22

1 Answers1

0

I use yarn add it:

yarn add font-awesome

modify app.scss:

@import '~font-awesome/scss/font-awesome';
$fa-font-path: '/fonts/font-awesome';

and webpack.mix.js:

mix.options({
    processCssUrls: false
});
mix.copy('./node_modules/font-awesome/fonts/**', 'public/fonts/font-awesome');
xl Huang
  • 1
  • 1