Whisk's avatar
Level 9

Getting mix processCssUrls: false, and fontawesone not working together

So I'm trying to keep my file structure the same when when I smash everything together with mix, but my fontawesome icons all break when I npm run dev. My webpack.mix.js looks like this right now.

mix.js('resources/js/app.js', 'public/js')
    .sass('resources/sass/app.scss', 'public/css');

    mix.sass('resources/sass/fontaws-bootstrap.scss', 'public/css');
    mix.sass('resources/sass/backend/backend.scss', 'public/css').options({
    processCssUrls: false,
});

I broke the bootstrap and font-awesome imports up into a different scss file thinking that would help but still breaks all the icons. Am I missing something here?

0 likes
3 replies
Whisk's avatar
Level 9

so when you do

@import "~font-awesome/scss/font-awesome";

this is wrong and isn't going to work then? I'm a little confused.

bobbybouwmann's avatar

It does, because you set this option processCssUrls: false. Now the urls to the font won't work anymore and therefore you see no icons anymore.

Please or to participate in this conversation.