Laravel mix to compile multiple css files 1) Create a laravel project. (for beginner) 2) If you go to public folder which is right on top of the resource folder. Inside public folder there you will see two folders. One is for css and another is for Js. There is a app.css in a css folder. The app.css file has been declared in the head section of app.blade.php which is inside the resources->views->layouts folder. 3) Let's create a custom css file inside the public css folder. In our case we are naming this as style.css 4) write any css as per your style in the style.css (our motive is to mix all those css files into one css file. Laravel will get every css design from that one css file) 5) Now open webpack.mix.js file which is present at the bottom of our laravel project. Or, type ctrl+p and write webpack.mix.js and open it. 6) In webpack.mix.js file you will see this: mix.js("resources/js/app.js", "public/js").sass( ...
Deal With Errors. Happy coding