score:2

Accepted answer
new webpack.optimize.CommonsChunkPlugin({
  name: 'vendor',
  filename: 'vendor.js', // <====
  minChunks: Infinity,
}),

score:0

const vendorPackages = [  
    'jquery',
    'lodash',
    'fetch',
    'es6-promise'
];
const webpackConfig = {  
    entry: {
        bundle: './src/client/index.js',
        vendor: vendorPackages
    }
    //...
}

Related Query

More Query from same tag