Are there any examples about multiple concurrent builds (SSR) ?

yuhaoju
0
yuhaoju
commented 7 months ago

This plugin looks really good for me. I just can't find how to config for multiple concurrent builds. Are there any examples? thanks.

0
manniL
2.9k
manniL
commented 4 months ago

Nuxt is using webpackbar for SSR and CSR builds in its latest nuxt-edge releases.

0
OliverJAsh
0
OliverJAsh
commented 3 months ago

@manniL Can you link to the code example in that project?

0
GriffinSauce
0
GriffinSauce
commented 2 months ago

I couldn't find the code mentioned but my solution:

const configs = [
  {
    plugins: [
      new WebpackBar({ name: 'client' })
    ]
  },
  {
    plugins: [
      new WebpackBar({ name: 'server' })
    ]
  },
]

Adding different colours gives you the example in the readme.

0
manniL
2.9k
manniL
commented 2 months ago

@GriffinSauce Sorry for the late response!

Nuxt adds the plugin here. It'll be called twice (one time when the client-bundle is compiling, the other time for the server-bundle. This happenes here

0
Informations
Question โ€ข Resolved
#c8 - Created 7 months ago