I'm trying to run a few routes up in puppeteer using the PrerenderSPAPlugin. It works flawlessly if I omit the optimization.splitChunks section from my config. The minute I include it, Puppeteer will hang up and never initialise my application.
The only way I seem to be able to get it to run anything at all is if I manually include all my named chunks in the page config (which then defeats the purpose of Vue/webpack loading in chunks as/when needed:
I've been beating my head against the webpack/vue-cli wall for the last few days so thought I'd reach out.
I have a pages config setup like so:
I've chunked out some named
cacheGroups
so I can group some modules which were commonly being duplicated across chunks:I'm trying to run a few routes up in puppeteer using the
PrerenderSPAPlugin
. It works flawlessly if I omit theoptimization.splitChunks
section from my config. The minute I include it, Puppeteer will hang up and never initialise my application.The only way I seem to be able to get it to run anything at all is if I manually include all my named
chunks
in the page config (which then defeats the purpose of Vue/webpack loading in chunks as/when needed:e.g:
I've been scouring the Webpack and Vue documentation with little/no luck.