From 0996956308719035753ebad413c166070506e0c7 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Tue, 12 Oct 2021 14:41:17 -0600 Subject: [PATCH] Add webpack config to override UI components with customisation --- webpack.config.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/webpack.config.js b/webpack.config.js index 91a2466ad7..8332a6ec0b 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -44,6 +44,10 @@ const additionalPlugins = [ /src[\/\\]customisations[\/\\]WidgetVariables\.ts/, path.resolve(require.resolve("matrix-react-sdk/package.json"), '..', 'src', 'customisations', 'bayern', 'BayernWidgetVariableCustomisations.ts'), ), + new webpack.NormalModuleReplacementPlugin( + /src[\/\\]customisations[\/\\]ComponentVisibility\.ts/, + path.resolve(require.resolve("matrix-react-sdk/package.json"), '..', 'src', 'customisations', 'bayern', 'BayernComponentVisibilityCustomisations.ts'), + ), ]; module.exports = (env, argv) => {