From e149ff6b6a495b96a546162e2ddfe8f0a15fcc8d Mon Sep 17 00:00:00 2001 From: argshook Date: Tue, 10 Oct 2023 18:06:52 +0300 Subject: [PATCH] add hashes to bundles * shorter hashes * hashes on all bundles * guarantess killing browser cache when we release versions --- packages/web-console/webpack.config.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/web-console/webpack.config.js b/packages/web-console/webpack.config.js index f1dd8646b..585e05f0d 100644 --- a/packages/web-console/webpack.config.js +++ b/packages/web-console/webpack.config.js @@ -50,7 +50,7 @@ module.exports = { }, output: { - filename: "[name].js", + filename: "[name].[chunkhash:5].js", publicPath: config.assetPath, path: path.resolve(__dirname, "dist"), }, @@ -71,7 +71,7 @@ module.exports = { cacheGroups: { commons: { test: /[\\/]\.yarn[\\/]/, - filename: "[name].[chunkhash].js", + filename: "[name].[chunkhash:5].js", }, }, }, @@ -86,8 +86,8 @@ module.exports = { target: config.backendUrl, }, client: { - overlay: false - } + overlay: false, + }, }, devtool: config.isProduction ? false : "cheap-source-map", @@ -167,7 +167,7 @@ module.exports = { }), new MiniCssExtractPlugin({ - filename: "[name].css", + filename: "[name].[chunkhash:5].css", }), new Webpack.DefinePlugin({