ctf0 / Laravel-Media-Manager

A "Vuejs & Laravel" Media Manager With Tons of Features
MIT License
832 stars 181 forks source link

[Feature] Posibility to add assets directly instead of using Mix #156

Closed elfeffe closed 4 years ago

elfeffe commented 4 years ago

Some of us, have an admin layout, full of JS and CSS, and a front layout with minimum requirements to improve page speed. If you add all the needed assets (Vue for example) to the Mix, they will be added to the front and admin. Probably this can be resolved using 2 mixes, but I don't know how to do that.

ctf0 commented 4 years ago

am not really sure what u r after, but manager.js doesnt have to be compiled as it is.

as stated in the wiki

remove any packages registration that you may already have in your app from manager.js to avoid duplications and keep your files as small as possible

ctf0 commented 4 years ago

as for to keep files as small as possible, i would recommend using code splitting & mix.extract()

ctf0 commented 3 years ago

Probably this can be resolved using 2 mixes, but I don't know how to do that.

https://www.compulsivecoders.com/tech/how-to-build-multiple-vendors-using-laravel-mix/