Skip to content

Commit

Permalink
add hashes to bundles
Browse files Browse the repository at this point in the history
* shorter hashes
* hashes on all bundles
* guarantess killing browser cache when we release versions
  • Loading branch information
argshook committed Oct 10, 2023
1 parent 9a4c039 commit e149ff6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/web-console/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ module.exports = {
},

output: {
filename: "[name].js",
filename: "[name].[chunkhash:5].js",
publicPath: config.assetPath,
path: path.resolve(__dirname, "dist"),
},
Expand All @@ -71,7 +71,7 @@ module.exports = {
cacheGroups: {
commons: {
test: /[\\/]\.yarn[\\/]/,
filename: "[name].[chunkhash].js",
filename: "[name].[chunkhash:5].js",
},
},
},
Expand All @@ -86,8 +86,8 @@ module.exports = {
target: config.backendUrl,
},
client: {
overlay: false
}
overlay: false,
},
},

devtool: config.isProduction ? false : "cheap-source-map",
Expand Down Expand Up @@ -167,7 +167,7 @@ module.exports = {
}),

new MiniCssExtractPlugin({
filename: "[name].css",
filename: "[name].[chunkhash:5].css",
}),

new Webpack.DefinePlugin({
Expand Down

0 comments on commit e149ff6

Please sign in to comment.