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]', },