vigneshwar's avatar

How can i combine sass and css files to one css file


mix.sass('resources/assets/admin/sass/users/edit.css', 'public/assets/admin/css/users').styles([
    'node_modules/select2/dist/css/select2.css',
], 'public/assets/admin/css/users/edit.css');

Let me know how to do this :)

0 likes
2 replies
ejdelmonico's avatar

Well, that depends if you want the easy way or the hard way. The easy way being just change the .css files to .scss and run mix. However, that could create some issues debt during updates if different team members are involved. The other way would be to either combine the css files and output to a .scss file which you can use in the sass() method. There are probably a few different ways to do it but it will work for you after the initial setup.

MohdPH's avatar

You can import the css file on the sass file , then compile only the main sass file, if it’s feasible

Please or to participate in this conversation.