Skip to content

Commit aa68247

Browse files
mgenwareLinusBorg
authored andcommitted
Use webpack 3's standard way to generate a manifest in CommonsChunkPlugin (vuejs-templates#1028)
The doc URL: https://webpack.js.org/plugins/commons-chunk-plugin/#manifest-file * `minChunks` is set to `Infinity` so that only webpack runtime is written to manifest file. * `chunnks: ['vendor']` is removed as entry chunks are selected if `chunks` is omitted.
1 parent 68fa82c commit aa68247

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

template/build/webpack.prod.conf.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ const webpackConfig = merge(baseWebpackConfig, {
9393
// prevent vendor hash from being updated whenever app bundle is updated
9494
new webpack.optimize.CommonsChunkPlugin({
9595
name: 'manifest',
96-
chunks: ['vendor']
96+
minChunks: Infinity,
9797
}),
9898
// This instance extracts shared chunks from code splitted chunks and bundles them
9999
// in a separate chunk, similar to the vendor chunk

0 commit comments

Comments
 (0)