diff options
author | Mike Greiling <mike@pixelcog.com> | 2017-03-02 09:58:47 +0300 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2017-03-04 01:47:38 +0300 |
commit | 5f464f98f1ff86caac02eca207704c1961b07be1 (patch) | |
tree | 1680ac2aa5a8a940d82066ba030d7e80db80f82e | |
parent | 7f22c39a25b5424ab1fd7905654667a697c82aeb (diff) |
include vue_shared scripts within common_vue chunk
-rw-r--r-- | config/webpack.config.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/config/webpack.config.js b/config/webpack.config.js index cdae80550dc..904ac36df4c 100644 --- a/config/webpack.config.js +++ b/config/webpack.config.js @@ -112,7 +112,9 @@ var config = { 'merge_conflicts', 'vue_pipelines', ], - minChunks: Infinity, + minChunks: function(module, count) { + return module.resource && (/vue_shared/).test(module.resource); + }, }), // create cacheable common library bundles |