From 404ffd5b2d9a1b3990b00a6a83436bdb0dba3f0d Mon Sep 17 00:00:00 2001 From: nick-delirium Date: Wed, 12 Mar 2025 16:46:02 +0100 Subject: [PATCH] ui: add hash to css filenames --- frontend/webpack.config.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/frontend/webpack.config.ts b/frontend/webpack.config.ts index 0eb1e86ca..06b6ef030 100644 --- a/frontend/webpack.config.ts +++ b/frontend/webpack.config.ts @@ -141,7 +141,11 @@ const config: Configuration = { { from: "./app/assets", to: "assets" }, ], }), - new MiniCssExtractPlugin({ ignoreOrder: true }), + new MiniCssExtractPlugin({ + filename: '[name]-[contenthash:7].css', + chunkFilename: '[id]-[contenthash:7].css', + ignoreOrder: true + }), ], devtool: isDevelopment ? "inline-source-map" : false, performance: {