Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
ARC-Support
public projects
lou-server
Commits
cdb0a551
Commit
cdb0a551
authored
Feb 05, 2021
by
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
Changes
3
Hide whitespace changes
Inline
Side-by-side
resources/sass/app.scss
View file @
cdb0a551
...
...
@@ -6,6 +6,3 @@
// Bootstrap
@import
'~bootstrap/scss/bootstrap'
;
// Font awesome
@import
"node_modules/font-awesome/scss/font-awesome.scss"
;
resources/views/layouts/app.blade.php
View file @
cdb0a551
...
...
@@ -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"
>
...
...
webpack.mix.js
View file @
cdb0a551
...
...
@@ -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
'
)
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment