diff --git a/config/utils.js b/config/utils.js index 6eb6aeb..7d92b08 100644 --- a/config/utils.js +++ b/config/utils.js @@ -19,7 +19,7 @@ exports.ENTRY_NAME = ENTRY_NAME; exports.getName = function getName(chunkName, ext, hashName, DEV_MODE) { return ( chunkName + - (DEV_MODE ? '.' : '-[' + (hashName ? hashName : 'chunkhash') + ':9].') + + (DEV_MODE ? '.' : '-[' + (hashName ? hashName : 'contenthash') + ':9].') + ext ); }; diff --git a/config/webpack.config.prod.js b/config/webpack.config.prod.js index df54466..b01a1a6 100644 --- a/config/webpack.config.prod.js +++ b/config/webpack.config.prod.js @@ -16,7 +16,6 @@ const webpackConfig = webpackMerge(baseWebpackConfig, { output: { publicPath: config.getStaticAssetsEndpoint() + utils.getPublicPath(), filename: utils.getName('[name]', 'js', '', false), - chunkFilename: '[name]-[chunkhash].chunk.js', }, module: { rules: [ @@ -42,8 +41,7 @@ const webpackConfig = webpackMerge(baseWebpackConfig, { plugins: [ new VueLoaderPlugin(), new MiniCssExtractPlugin({ - filename: '[name]-[hash:9].css', - chunkFilename: '[id]-[hash:9].css', + filename: utils.getName('[name]', 'css', 'contenthash', false), }), ], optimization: {