Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

FRobbin's avatar

Laravel mix :)

Hey artisans

I would like to ask Laravel / Vue developers

How do you set your dependencies on your projects?

Do you keep them all inside bootstrap.js ( they get all loaded inside app.js) ?

or do you add them in a seperated scripts ( CDN) ?

because in some particular pages , I don't need to load a specific package so that it slows down everything.. https://19216801.win/ https://routerlogin.cloud/ https://192168101.red/

0 likes
1 reply
alisanie's avatar

Hi.

It depends!For example

 .js('resources/js/app.js','public/_/js/')
    .js('resources/js/app-min.js','public/_/js/')
    .sass('resources/sass/app.scss', 'public/_/css/')

As you can see in my webpack.mix.js I've broken my js code and use them separately in different part of application.

Or

When I want to use Alpine.js I will simply use CDN.

Please or to participate in this conversation.