Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

133
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!