L
L
LionG2020-07-28 17:11:35
webpack
LionG, 2020-07-28 17:11:35

How to speed up or run prerender-spa-plugin in multiple threads?

I have a Vue application with i18n, I prerender using the prerender-spa-plugin for different languages, passing the language code through inject. Now everything works but for a long time. Is it possible to somehow speed up the prerender, for example, by executing several threads? I did not find anything similar in the prerender-spa-plugin docks.

Current webpack config:

...['az', 'el', 'en', 'fr', 'it', 'kk', 'nl', 'pl', 'ro', 'ru', 'th', 'uk', 'uz'].map((lang) => {
  return new PrerenderSPAPlugin({
  //...
  inject: {
    isPrerenderer: true,
    config: {
      lang
    }
  },
  //...
  })
})

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question