diff options
author | Mike Greiling <mike@pixelcog.com> | 2017-03-02 09:35:44 +0300 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2017-03-04 01:47:38 +0300 |
commit | ba865db378b12265442c008a6fc167f2c3c910fb (patch) | |
tree | 0febff45704bddbf0b02e00785d97839bc92bc15 /config | |
parent | 7371f6cd8c168df41e4197f80f53f3c04185dee7 (diff) |
separate webpack runtime into its own chunk to maintain cacheability of common chunk
Diffstat (limited to 'config')
-rw-r--r-- | config/webpack.config.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/config/webpack.config.js b/config/webpack.config.js index a76daa2ba95..f262286f5f8 100644 --- a/config/webpack.config.js +++ b/config/webpack.config.js @@ -98,10 +98,9 @@ var config = { new webpack.HashedModuleIdsPlugin() : new webpack.NamedModulesPlugin(), - // create a common.js bundle to be loaded on every page + // create cacheable common library bundles new webpack.optimize.CommonsChunkPlugin({ - name: 'common', - minChunks: Infinity, + names: ['application', 'common', 'manifest'], }), ], |