Splitting JS libraries with laravel mix
-
I'm currently trying to split JQuery from its plugins using laravel mix. Ideally, I want my views to load only what they need but I can't figure out how to do that the right way with npm.
For example, I'm using the datatables.net and jquery-mask-plugin packages. Both of them depend on JQuery to work.
Currently, what I have is the following