mirror of
https://gitlab.com/timvisee/send.git
synced 2025-12-06 22:20:55 +03:00
cram more into vendor bundle
This commit is contained in:
@@ -5,7 +5,7 @@ const ManifestPlugin = require('webpack-manifest-plugin');
|
|||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
entry: {
|
entry: {
|
||||||
vendor: ['babel-polyfill', 'raven-js', 'fluent', 'choo'],
|
vendor: ['babel-polyfill', 'fluent'],
|
||||||
app: ['./app/main.js']
|
app: ['./app/main.js']
|
||||||
},
|
},
|
||||||
output: {
|
output: {
|
||||||
@@ -124,7 +124,8 @@ module.exports = {
|
|||||||
new webpack.IgnorePlugin(/require-from-string/),
|
new webpack.IgnorePlugin(/require-from-string/),
|
||||||
new webpack.HashedModuleIdsPlugin(),
|
new webpack.HashedModuleIdsPlugin(),
|
||||||
new webpack.optimize.CommonsChunkPlugin({
|
new webpack.optimize.CommonsChunkPlugin({
|
||||||
name: 'vendor'
|
name: 'vendor',
|
||||||
|
minChunks: ({ resource }) => /node_modules/.test(resource)
|
||||||
}),
|
}),
|
||||||
new webpack.optimize.CommonsChunkPlugin({
|
new webpack.optimize.CommonsChunkPlugin({
|
||||||
name: 'runtime'
|
name: 'runtime'
|
||||||
|
|||||||
Reference in New Issue
Block a user