I attempted to integrate fontawesome
into my laravel mdbvue
setup.
Upon installing mdbvue
using the command:
npm install mdbvue
fontawesome
was automatically added to my package-lock.json
and can be found in the node_modules folder under @fortawesome
.
Now, the challenge lies in implementing fontawesome. But how can I achieve this?
I tried various methods, all without success:
import '@fortawesome/fontawesome-free/css/all.min.css';
@import '@fortawesome/fontawesome-free/css/all.min.css';
Note: Interestingly, adding
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.11.2/css/all.css">
to my html-header seemed to work seamlessly.
Edit: It appears that there might be a discrepancy between using xampp and php artisan serve. Strangely enough, when utilizing the latter, all icons are displayed correctly.