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.
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.
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.