node -v): 12.18.3npm -v): 6.14.6With using mix.combine() in a prod env, the output file contains "undefined". No errors are thrown. mix.babel() produce an output. No problem with both in development mode.
could be linked with the minimify library.

even with babel this time...
Could you please provide a reproduction repo?
I鈥檒l try!
here a small sample: test_webpack.zip
npm run dev: both files are compiled ok
npm run prod:
with our whole project, event babel produce a file with "undefined" in it
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
We build in development mode for release builds in the meantime...
Me too...
mix.combine('resources/js/anim.js', folder.dist_assets + "js/anim.min.js");
In npm run dev -> anim.min.js 50kb all ok , but in npm run prod anim.min.js 10bytes and inside the file undefined.
My quick workaround is to not minify this file, only copy.
+1
mix.scripts(['resources/js/composite.js'], 'public/js/composite.js') npm run dev and prod returns both undefined inside the generated file. It was OK earlier.. And once poof, and it`s gone..
node: v10.21.0,
npm: 5.8.0,
laravel-mix: 5.0.7
Our solution was to go with webpack directly, removing "laravel-mix".
+1
upgraded to latest version and broken my script!!
i cant compile and after that combine
Most helpful comment
Me too...
mix.combine('resources/js/anim.js', folder.dist_assets + "js/anim.min.js");In
npm run dev-> anim.min.js 50kb all ok , but innpm run prodanim.min.js 10bytes and inside the file undefined.My quick workaround is to not minify this file, only copy.