You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// webpack configuration
const webpack = require("webpack");
module.exports = {
entry: {
entry: './app.js'
},
output: {
...
},
plugins: [
new webpack.optimize.CommonsChunkPlugin({
// name of the entry chunk to scan for common (shared) dependencies
// the common dependencies will be moved into this entry chunk
name: 'entry',
// indicate that we want to scan for common dependencies in
// child (code split) chunks of the named entry chunk
children: true,
// minimum number of different chunks (entry or split) which a dependency
// must be used by to deem it a common dependency
minChunks: 2
})
]
};
Activity