Closed elfeffe closed 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
as for to keep files as small as possible, i would recommend using code splitting & mix.extract()
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/
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.