Add webpack config to override UI components with customisation
This commit is contained in:
committed by
Kerry Archibald
parent
86a4d70bcf
commit
0996956308
@@ -44,6 +44,10 @@ const additionalPlugins = [
|
|||||||
/src[\/\\]customisations[\/\\]WidgetVariables\.ts/,
|
/src[\/\\]customisations[\/\\]WidgetVariables\.ts/,
|
||||||
path.resolve(require.resolve("matrix-react-sdk/package.json"), '..', 'src', 'customisations', 'bayern', 'BayernWidgetVariableCustomisations.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) => {
|
module.exports = (env, argv) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user