Created
June 13, 2018 12:39
-
-
Save laruiss/3ded501b7d633511c24d91249f51413d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Split the code between 'vendors' which will contain all the | |
// modules from node_modules and 'main' which will contain our code | |
new webpack.optimize.CommonsChunkPlugin({ | |
name: 'vendor', | |
minChunks(module) { | |
return module.context && module.context.includes('node_modules'); | |
}, | |
}), | |
new webpack.optimize.CommonsChunkPlugin({ | |
name: 'manifest', | |
}), |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment