Commit cdb0a551 authored by Maik Messerschmidt's avatar Maik Messerschmidt
Browse files

Added fontawesome manually instead of including it in app.css

See: https://github.com/JeffreyWay/laravel-mix/issues/1026
parent 7aa57da1
......@@ -6,6 +6,3 @@
// Bootstrap
@import '~bootstrap/scss/bootstrap';
// Font awesome
@import "node_modules/font-awesome/scss/font-awesome.scss";
......@@ -15,6 +15,7 @@
<!-- Fonts -->
<link rel="dns-prefetch" href="//fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css?family=Nunito" rel="stylesheet">
<link href="{{ mix('css/font-awesome.min.css') }}" rel="stylesheet" />
<!-- Styles -->
<link href="{{ asset('css/app.css') }}" rel="stylesheet">
......
......@@ -13,6 +13,11 @@ const mix = require('laravel-mix');
mix.js('resources/js/app.js', 'public/js')
.sass('resources/sass/app.scss', 'public/css')
// Adding font-awesome to app.css will only work, if the root-path is /
// which isn't the case on our servers.
// See: https://github.com/JeffreyWay/laravel-mix/issues/1026
.copy('node_modules/font-awesome/css/font-awesome.min.css', 'public/css')
.copy('node_modules/font-awesome/fonts/*', 'public/fonts')
// Include project specific files, if they exists.
try { require('resources/experiment/webpack.mix.js') }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment