Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

136
Vistas
Webpack 3 to 4, CommonsChunkPlugin to SplitChunksPlugin

I am trying to update webpack to v4 and i am having issues with CmmonsChunkPlugin.

This is my current simple config

new webpackStream.webpack.optimize.CommonsChunkPlugin({
  name: 'common',
  filename: 'common.bundle.js'
})

How would i go about createing the common.bundle.js file with all the common shared modules that i use in all of my js entries.

What i have tried right now is

optimization: {
splitChunks: {
  cacheGroups: {
    common: {
      name: 'common',
      filename: 'common.bundle.js',
      chunks: 'all'
    }
  }
}

}

But this results in me having a large common.bundle.js file with all of the code in all my js entries files

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda