Laravel-mix: [6.*] Combine not working

Created on 23 Nov 2020  路  4Comments  路  Source: JeffreyWay/laravel-mix

Description:

Hiya, thanks for Mix! I'm trying to upgrade to version 6 and finding that combine is not working for me when it was ok in Mix 5. I've put together a fully reduced test repo here demonstrating the issue: https://github.com/cld-agency/mix6-test

The repo contains two CSS files (one SCSS and one plain CSS, though I've tried with two CSS files and using the postCSS command for both, with the same results). I compile them and then combine them into combined.css. The combined.css file gets created but is always blank.

Steps To Reproduce:

When doing npm install I do get a deprecation warning - not sure if this has any bearing on the issue, but I can't find a way to make this warning go away!

npm WARN deprecated [email protected]: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.

Most helpful comment

Thanks, I'll have a look this week.

All 4 comments

Thanks, I'll have a look this week.

@JeffreyWay Any updates on this, please? Still doesn't work as of 6.0.11.

@JeffreyWay

This actually does work but incorrectly.
combine/styles is executed in parallel to sass/less/etc.
As a result the concatenated file is empty or only contains any pre-built/static content.
In the provided repro if the files were not cleaned after concatenation then second run of mix would provide correct results.
But in that case cleaning up is not possible...

+1

upgraded to latest version and broken my script!!

i cant compile and after that combine

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Bomavi picture Bomavi  路  3Comments

mstralka picture mstralka  路  3Comments

amin101 picture amin101  路  3Comments

sdebacker picture sdebacker  路  3Comments

terion-name picture terion-name  路  3Comments