fix folder structure to not duplicate again

This commit is contained in:
Gamerboy59 2023-09-27 00:40:26 +02:00 committed by GitHub
parent 8561e9c4b8
commit 3cf049f1be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 7 additions and 2 deletions

View File

@ -1,2 +1,2 @@
// FontAwesome
$fa-font-path: "webfonts";
$fa-font-path: "webfonts/vendor/@fortawesome/fontawesome-free";

7
webpack.mix.js vendored
View File

@ -12,6 +12,11 @@ const mix = require('laravel-mix');
*/
mix.js('resources/js/app.js', 'public/js').postCss('resources/css/app.css', 'public/css');
mix.sass('resources/sass/app.scss', 'public/css').copy('node_modules/@fortawesome/fontawesome-free/webfonts', 'public/css/webfonts');
mix.sass('resources/sass/app.scss', 'public/css');
mix.options({
fileLoaderDirs: {
fonts: 'css/webfonts'
}
});
mix.postCss('resources/css/light.css', 'public/css');
mix.postCss('resources/css/dark.css', 'public/css');