Level 37
You need to use mix.autoload({}).
Like here:
https://laracasts.com/discuss/channels/elixir/laravel-mix-required-jquery-plugins-cant-be-found
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?
Please or to participate in this conversation.