PixelPaul's avatar

multiple entry points possible yet in mix?

i am searching the webz and it still seems there is no solution to having multiple entry points with laravel mix and also using CommonsChunkPlugin. Is there any solutions that anyone may know of? thanks.

0 likes
3 replies
ejdelmonico's avatar

You can make your own webpack.config with the additional entry point and that should be merged with the default config. Give that a try.

PixelPaul's avatar

i was thinking of doing that too but i can not find any instructions or anything that could help me get it to work that way. Do you know of any guides or docs that would say how to do such a thing? thanks.

ejdelmonico's avatar

Well, I beleive they took the ability away from Mix some time ago but you could try and see if the deep merge will work like this:

mix..webpackConfig({
  entry: ['myNewEntry']
});

If you can't get that to work then I would just drop Mix and make your own webpack config...or alter the Mix files but that would only work for a small project because of upgrade issues.

Please or to participate in this conversation.