From 5d418e84fe9444019a40c421108f684638bb559d Mon Sep 17 00:00:00 2001 From: Pan Date: Mon, 23 Jul 2018 16:41:30 +0800 Subject: [PATCH] refine --- build/webpack.prod.conf.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build/webpack.prod.conf.js b/build/webpack.prod.conf.js index d48a8f85..5444d743 100644 --- a/build/webpack.prod.conf.js +++ b/build/webpack.prod.conf.js @@ -40,7 +40,8 @@ const webpackConfig = merge(baseWebpackConfig, { }), // extract css into its own file new MiniCssExtractPlugin({ - filename: utils.assetsPath('css/[name].[chunkhash].css'), + filename: utils.assetsPath('css/[name].[contenthash:8].css'), + chunkFilename: utils.assetsPath('css/[name].[contenthash:8].css') }), // generate dist index.html with correct asset hash for caching. // you can customize output by editing /index.html