diff --git a/services/idp/ui_config/webpack.config.js b/services/idp/ui_config/webpack.config.js index 1e300f94f26..7a277ab6878 100644 --- a/services/idp/ui_config/webpack.config.js +++ b/services/idp/ui_config/webpack.config.js @@ -424,25 +424,7 @@ module.exports = function (webpackEnv) { }, 'sass-loader' ) - }, - // "file" loader makes sure those assets get served by WebpackDevServer. - // When you `import` an asset, you get its (virtual) filename. - // In production, they would get copied to the `build` folder. - // This loader doesn't use a "test" so it will catch all modules - // that fall through the other loaders. - { - loader: require.resolve('file-loader'), - // Exclude `js` files to keep "css" loader working as it injects - // 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$/], - options: { - name: 'static/media/[name].[hash:8].[ext]' - } } - // ** STOP ** Are you adding a new loader? - // Make sure to add the new loader(s) before the "file" loader. ] } ]