diff --git a/config/utils.js b/config/utils.js index f5c5dcb..8e5dbe8 100644 --- a/config/utils.js +++ b/config/utils.js @@ -27,7 +27,7 @@ exports.LOADER = LOADER; 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 5b21702..f125474 100644 --- a/config/webpack.config.prod.js +++ b/config/webpack.config.prod.js @@ -18,7 +18,6 @@ const webpackConfig = webpackMerge(baseWebpackConfig, { output: { publicPath: config.getStaticAssetsEndpoint() + utils.getPublicPath(), filename: utils.getName('[name]', 'js', '', false), - chunkFilename: '[name]-[chunkhash:9].chunk.js', }, module: { rules: [ @@ -35,8 +34,7 @@ const webpackConfig = webpackMerge(baseWebpackConfig, { stats: { children: false, warnings: false }, plugins: [ new MiniCssExtractPlugin({ - filename: '[name]-[hash:9].css', - chunkFilename: '[id]-[hash:9].css', + filename: utils.getName('[name]', 'css', 'contenthash', false), }), new PreloadWebpackPlugin({ rel: 'preload',