In my webpack
config I have entry defined as like this -
entry: [
'webpack-hot-middleware/client',
'./src/app.jsx'
],
I had realized that my bundle size getting generated as around 8 mb in size.
So I decided to split the vendor javascript files into separate chunks i.e bundle.vendor.js
I know that I have to use use CommonsChunkPlugin for this and change the entry to something like this
entry: {
app: './src/app.js',
vendors: './src/vendors.js'
}
But can't figure out how to change my existing entry configuration for the same which is currently set as
entry: [
'webpack-hot-middleware/client',
'./src/app.jsx'
],