dexter_siah's avatar

Laravel 5.8 Mix: how to compile all .scss files in the folder without specifying each file

Hi everyone, I'm trying to import some external .scss files onto my project but there are too many to list. Is there a way to compile all the .scss files in the folder without having to specify every individual file. I'm trying to achieve something similar to the code below but unfortunately it is not working. Any ideas how can this be done?

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

0 likes
1 reply
Nakov's avatar

Take a look at this answer here. You might want to control the order as well, so it is not a good way to just combine all of them as some rules might be overwritten.

Please or to participate in this conversation.