Add webpack config to override UI components with customisation

dataport/rebased
Travis Ralston 2021-10-12 14:41:17 -06:00 committed by Kerry Archibald
parent 86a4d70bcf
commit 0996956308
1 changed files with 4 additions and 0 deletions

View File

@ -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) => {