make font url relative
This commit is contained in:
parent
8c1878267b
commit
2f6078ac1c
2
resources/sass/_variables.scss
vendored
2
resources/sass/_variables.scss
vendored
|
@ -1,2 +1,2 @@
|
||||||
// FontAwesome
|
// FontAwesome
|
||||||
$fa-font-path: "webfonts/vendor/@fortawesome/fontawesome-free";
|
$fa-font-path: "webfonts";
|
21
webpack.mix.js
vendored
21
webpack.mix.js
vendored
|
@ -12,11 +12,20 @@ const mix = require('laravel-mix');
|
||||||
*/
|
*/
|
||||||
|
|
||||||
mix.js('resources/js/app.js', 'public/js').postCss('resources/css/app.css', 'public/css');
|
mix.js('resources/js/app.js', 'public/js').postCss('resources/css/app.css', 'public/css');
|
||||||
mix.sass('resources/sass/app.scss', 'public/css');
|
mix.sass('resources/sass/app.scss', 'public/css').options({
|
||||||
mix.options({
|
processCssUrls: false
|
||||||
fileLoaderDirs: {
|
}).copy(
|
||||||
fonts: 'css/webfonts'
|
'node_modules/@fortawesome/fontawesome-free/webfonts/fa-regular-400.ttf',
|
||||||
}
|
'public/webfonts/webfa-regular-400.ttf'
|
||||||
});
|
).copy(
|
||||||
|
'node_modules/@fortawesome/fontawesome-free/webfonts/fa-regular-400.woff2',
|
||||||
|
'public/webfonts/webfa-regular-400.woff2'
|
||||||
|
).copy(
|
||||||
|
'node_modules/@fortawesome/fontawesome-free/webfonts/fa-solid-900.ttf',
|
||||||
|
'public/webfonts/webfa-solid-900.ttf'
|
||||||
|
).copy(
|
||||||
|
'node_modules/@fortawesome/fontawesome-free/webfonts/fa-solid-900.woff2',
|
||||||
|
'public/webfonts/webfa-solid-900.woff2'
|
||||||
|
);
|
||||||
mix.postCss('resources/css/light.css', 'public/css');
|
mix.postCss('resources/css/light.css', 'public/css');
|
||||||
mix.postCss('resources/css/dark.css', 'public/css');
|
mix.postCss('resources/css/dark.css', 'public/css');
|
Loading…
Reference in New Issue
Block a user