From d144b8d634323c73993b4425f0f8a98492650070 Mon Sep 17 00:00:00 2001 From: Mgen Date: Thu, 2 Nov 2017 18:58:46 +0800 Subject: [PATCH] Use webpack 3's standard way to generate a manifest in CommonsChunkPlugin 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. --- template/build/webpack.prod.conf.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/template/build/webpack.prod.conf.js b/template/build/webpack.prod.conf.js index a01b4454a2..0fa6e9270b 100644 --- a/template/build/webpack.prod.conf.js +++ b/template/build/webpack.prod.conf.js @@ -90,7 +90,7 @@ const webpackConfig = merge(baseWebpackConfig, { // prevent vendor hash from being updated whenever app bundle is updated new webpack.optimize.CommonsChunkPlugin({ name: 'manifest', - chunks: ['vendor'] + minChunks: Infinity, }), // copy custom static assets new CopyWebpackPlugin([