thebigk's avatar
Level 13

Is it me or Laravel Mix doesn't respect the order of JS / CSS files?

I can't tell for sure if Laravel mix doesn't respect the order of JS files to be combined? For example I've -

mix.js(['file1.js', 'file2.js', 'file3.js], 'public/js/final.js');

I'm trying to combine the jquery plugin files of a text-editor and after running npm run prod, and loading the minified file, browser throws error $function not defined, which typically happens when the file in which function is defined isn't loaded before the file which calls it.

Can someone tell me a way to fix this?

0 likes
1 reply

Please or to participate in this conversation.