The benefit is that you would get a minified files in production, and they would be joined into a single css file, if there is more than one. The same would go for JavaScript.
Aug 18, 2022
4
Level 8
Should I try to refactor code to use Mix?
I'm working on a Laravel project that seem to have been written not according to guidelines. I try to fix some stuff there. One of the things I noticed is that there is no use of Mix.
There is only the default lines in the webpack.mix.js:
mix.js('resources/js/app.js', 'public/js')
.postCss('resources/css/app.css', 'public/css');
But even that is not used. They just put everything directly to the public folder.
What would be the benefits of trying to move everything to use Mix? *Using Laravel 6
Please or to participate in this conversation.