I want to use Awesome font icons in a laravel/Vue project:
I installed the fonts:
npm install font-awesome --save
Add to resources/sass/app.scss the line: @import "node_modules/font-awesome/scss/font-awesome.scss";
npm run dev
The relevant part of my layout file:
<!doctype html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- CSRF Token -->
<meta name="csrf-token" content="{{ csrf_token() }}">
<title>{{ config('app.name', 'Laravel') }}</title>
<!-- Scripts -->
<script src="{{ asset('js/app.js') }}" defer></script>
<!-- Fonts -->
<link rel="dns-prefetch" href="//fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css?family=Nunito" rel="stylesheet">
But when I use any awesome icon in my html pages, e.g.
<i class="fa fa-copy"></i>
I always get a kind of dummy icon:
I then found this page: https://www.itsolutionstuff.com/post/how-to-install-and-use-font-awesome-icons-in-laravelexample.html. An dI tried to add the line
<link type="text/css" rel="stylesheet" href="{{ mix('css/app.css') }}">
to the fonts part of my layout html-file. But I still get the dummy icon.
Any idea what the problem is?
Regards,
Hubert