Spartaque07's avatar

Multi vendor files

Hello guys. Imagine that i have the next structure in my multi tenant application front-end part: https://monosnap.com/file/14MZECZetGDA0rDacG1XbYzt5CCL8C I have different dependency and layouts for all of this themes. For example, some layout use vue.js, dropzone.js but another layout not. When i tried to create different vendor files for all of this layouts i saw that manifest.js file creates only ones, and it creates for last vendor.js file. After this, when i use vendor files in another templates it wouldn't work. My webpack.mix.js: https://monosnap.com/file/ddpcymwXVMUsiYX2nDf3rwqSBaiG7c Compiling result: https://monosnap.com/file/bHIcl8OSmNzwPtVTQJisnEbKKEWO0x

After that, manifest.js works only with last created vendor.js file.

Does anyone have idea how i can fix this? I'm trying to use this package: https://www.npmjs.com/package/laravel-multimix, it works, but when i use laravel mix() function error occures.

0 likes
0 replies

Please or to participate in this conversation.