thebigk's avatar
Level 13

Mix can't combine CSS files inside /resources/css/ directory

Is it me or Laravel Mix can't combine plain css files inside /resources/css/ directory? It looks like it needs the files to be inside /public/<> directory.

Can someone confirm this or can this be changed?

0 likes
3 replies
thaden's avatar

No, Laravel Mix does not depends on your folder structure.

You can specify the input and output path:

mix.combine([
    './resources/css/file-A.css',
    './resources/css/file-B.css',
], './resources/css/both.css');
1 like
thebigk's avatar
Level 13

@thaden - I didn't use combine. I used mix.styles() to combine styles. So it's the mix.combine that you'll recommend; right?

Please or to participate in this conversation.