From 951d48524bb2d7e4d45876746ad5786c66606eea Mon Sep 17 00:00:00 2001 From: nobody <411298027@qq.com> Date: Mon, 27 Mar 2017 18:56:53 +0800 Subject: [PATCH] make vendor really cached. Do not change hash. make vendor really cached. Do not change hash every time. Reference https://webpack.js.org/guides/code-splitting-libraries/#implicit-common-vendor-chunk --- build/webpack.client.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/webpack.client.config.js b/build/webpack.client.config.js index 5a7cd814a..229116d79 100644 --- a/build/webpack.client.config.js +++ b/build/webpack.client.config.js @@ -19,7 +19,7 @@ const config = merge(base, { }), // extract vendor chunks for better caching new webpack.optimize.CommonsChunkPlugin({ - name: 'vendor' + name: ['vendor', 'manifest'] }), // generate output HTML new HTMLPlugin({