-
Notifications
You must be signed in to change notification settings - Fork 426
Closed
Description
Hi, I'm using this in my projects, but I want to use create-react-app.
// optimizations
new CommonsChunkPlugin({
children: true,
async: 'common',
minChunks: 2,
}),
new CommonsChunkPlugin({
children: true,
async: 'vendor',
minChunks(module) {
// this assumes your vendor imports exist in the node_modules directory
return isVendor(module);
},
}),
Where isVendor is like this:
function isVendor (module) {
return module.context && module.context.indexOf('node_modules') !== -1;
}
Can I use react-app-rewired for this? Thanks ;)
Metadata
Metadata
Assignees
Labels
No labels