From 5ac45601574f13e844c4e79b5d16b0e1e44a964d Mon Sep 17 00:00:00 2001 From: Danny Coates Date: Fri, 25 Aug 2017 15:12:16 -0700 Subject: [PATCH] cram more into vendor bundle --- webpack.config.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/webpack.config.js b/webpack.config.js index 4c40bdd1..db7e2c8c 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -5,7 +5,7 @@ const ManifestPlugin = require('webpack-manifest-plugin'); module.exports = { entry: { - vendor: ['babel-polyfill', 'raven-js', 'fluent', 'choo'], + vendor: ['babel-polyfill', 'fluent'], app: ['./app/main.js'] }, output: { @@ -124,7 +124,8 @@ module.exports = { new webpack.IgnorePlugin(/require-from-string/), new webpack.HashedModuleIdsPlugin(), new webpack.optimize.CommonsChunkPlugin({ - name: 'vendor' + name: 'vendor', + minChunks: ({ resource }) => /node_modules/.test(resource) }), new webpack.optimize.CommonsChunkPlugin({ name: 'runtime'