Created
October 31, 2017 10:32
-
-
Save marekpiechut/cd80dd84217d86f4eb9a86e0488fe667 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
new webpack.optimize.CommonsChunkPlugin({ | |
name: 'vendor', | |
minChunks: function (module) { | |
// this assumes your vendor imports exist in the node_modules directory | |
// and will move all modules from there to separate bundle | |
return module.context && module.context.indexOf('node_modules') !== -1; | |
} | |
}), |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment