I have the same problem, did you find a solution?
Mar 31, 2017
2
Level 1
Handling multiple files with duplicate dependancies with mix/webpack
Hello,
I'm looking to include split up the javascript files mix generates. I've got an app that uses plotly.js (a fairly sizeable JS library) and it doesn't make sense to include this on every page.
I've separated plotly.js and my own custom code around handling the graphs into another mix.js declaration in my webpack.mix.js file, but the file that's generated contains the jQuery library (which is loaded elsewhere).
Can anyone point me in the right direction for using mix to generate multiple js files without having duplicate dependencies?
Any help is much appreciated, thank you.
Please or to participate in this conversation.