From a240389a06ee29ab99c4740b8c4bb454464b4ee6 Mon Sep 17 00:00:00 2001 From: fschade Date: Tue, 28 Oct 2025 17:36:19 +0100 Subject: [PATCH] fix(idp): html-webpack-plugin empty file bug --- services/idp/ui_config/webpack.config.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/services/idp/ui_config/webpack.config.js b/services/idp/ui_config/webpack.config.js index 8752e2f33..b3eea6d2a 100644 --- a/services/idp/ui_config/webpack.config.js +++ b/services/idp/ui_config/webpack.config.js @@ -472,7 +472,10 @@ module.exports = function(webpackEnv) { // its runtime that would otherwise be processed through "file" loader. // Also exclude `html` and `json` extensions so they get processed // by webpacks internal loaders. - exclude: [/\.(js|mjs|jsx|ts|tsx)$/, /\.html$/, /\.json$/], + // + // html-webpack-plugin has a known bug, + // fixed by /^$/ https://github.com/jantimon/html-webpack-plugin/issues/1589 + exclude: [/^$/, /\.(js|mjs|jsx|ts|tsx)$/, /\.html$/, /\.json$/], options: { name: 'static/media/[name].[hash:8].[ext]', },