Improve docs for customisations
The new regex considers Windows as an OS, and the added array helps reduce merge conflicts for the future.
This commit is contained in:
parent
b8b13a6316
commit
e2ce4239bd
2 changed files with 8 additions and 2 deletions
|
@ -17,11 +17,11 @@ the React SDK, you can still override it from the Element Web layer:
|
|||
2. Edit customisations points and make sure export the ones you actually want to
|
||||
activate
|
||||
3. Tweak the Element build process to use the customised module instead of the
|
||||
default by adding this to end of the `plugins` array in `webpack.config.js`:
|
||||
default by adding this to the `additionalPlugins` array in `webpack.config.js`:
|
||||
|
||||
```js
|
||||
new webpack.NormalModuleReplacementPlugin(
|
||||
/src\/customisations\/Security.ts/,
|
||||
/src[\/\\]customisations[\/\\]Security\.ts/,
|
||||
path.resolve(__dirname, 'src/customisations/YourNameSecurity.ts'),
|
||||
),
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue