ftiersch's avatar

Multiple Entry points mixing frameworks

Hi,

I have recently upgraded Laravel Mix in one of my projects to v6 and now have some trouble with it.

Basically I have a couple different entrypoints that are basically different Vue applications (one for the frontend and multiple different backends depending on usertype). That part works fine.

But I also have a couple of files that are mostly just simple JavaScript files without any frameworks etc that I want to compile from ES2016 etc. They are used to be included on other websites to dynamically create an iframe etc.

The compilation of those works as long as I comment out the .vue() part of my webpack.mix.file but if I put that in the files get compiled differently and won't execute the JS code in them automatically anymore.

Is there a solution for this in a single webpack.mix.file or do I need to split those up into multiple ones?

Thanks!

0 likes
0 replies

Please or to participate in this conversation.