Webpack config for widget customisation endpoint
This commit is contained in:
parent
e2a4d7a568
commit
86a4d70bcf
1 changed files with 8 additions and 0 deletions
|
@ -39,6 +39,13 @@ function getActiveThemes() {
|
||||||
return themes;
|
return themes;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const additionalPlugins = [
|
||||||
|
new webpack.NormalModuleReplacementPlugin(
|
||||||
|
/src[\/\\]customisations[\/\\]WidgetVariables\.ts/,
|
||||||
|
path.resolve(require.resolve("matrix-react-sdk/package.json"), '..', 'src', 'customisations', 'bayern', 'BayernWidgetVariableCustomisations.ts'),
|
||||||
|
),
|
||||||
|
];
|
||||||
|
|
||||||
module.exports = (env, argv) => {
|
module.exports = (env, argv) => {
|
||||||
// Establish settings based on the environment and args.
|
// Establish settings based on the environment and args.
|
||||||
//
|
//
|
||||||
|
@ -546,6 +553,7 @@ module.exports = (env, argv) => {
|
||||||
include: "./webapp/bundles",
|
include: "./webapp/bundles",
|
||||||
}),
|
}),
|
||||||
new webpack.EnvironmentPlugin(['VERSION']),
|
new webpack.EnvironmentPlugin(['VERSION']),
|
||||||
|
...additionalPlugins,
|
||||||
].filter(Boolean),
|
].filter(Boolean),
|
||||||
|
|
||||||
output: {
|
output: {
|
||||||
|
|
Loading…
Add table
Reference in a new issue