Do any of these suggestions work? https://stackoverflow.com/questions/43451509/how-to-install-font-awesome-in-laravel-mix
Font awesome in with laravel mix
Hello artisans, I have a problem with importing Fontawesome using npm and laravel mix. here is my use case: 1- I've created a new Laravel project 2- I've installed font-awesome through npm 3- I've added @import "~font-awesome/scss/font-awesome"; i get the following error: it looks for fonts in: http://localhost/fonts/fontawesome-webfont.woff2 instead of : http://localhost/public/fonts/fontawesome-webfont.woff2
my first (not working) solution was to add this $fa-font-path: "./public/fonts/"; to my app.scss file (that was stupid because of order load but it worth trying)
can anyone help?
PS: i don't wanna use a CDN nor a direct path using Thanks
it worked when i gave it the full path like this in my app.scss file
$fa-font-path: '/laralab/public/fonts/vendor/font-awesome';
@import '~font-awesome/scss/font-awesome';
but i think it's a terrible idea, i'm not going to use this solution for sure!
any other solutions please?
Please or to participate in this conversation.