JackJones's avatar

Does mix just break your scripts?

If I use .js() or .script() I either get errors in the compiler or if it works then it just doesn't work in the browser and everything dies, Bootstrap complains that jQuery isn't there etc

Is it just me?

I just use .copy() for now because I can't figure out why it breaks

0 likes
1 reply
orlandojoo's avatar

use .scripts() 2 arg, first an array with all your js

example:

mix.scripts([
        'resources/assets/json/alfa.js',
        'resources/assets/js/beta.js',
        'resources/assets/js/gamma.js',
    ],
    'public/build/js/app.js');

Please or to participate in this conversation.