cram more into vendor bundle

This commit is contained in:
Danny Coates 2017-08-25 15:12:16 -07:00
parent 8e60ca1ac9
commit 5ac4560157
No known key found for this signature in database
GPG Key ID: 4C442633C62E00CB

View File

@ -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'