You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can use this folder to add scripts and configurations to customize Redash build and development loop.
2
+
3
+
## How to customize Webpack
4
+
5
+
### Configurable parameters
6
+
7
+
You can override the values of configurable parameters by exporting a `CONFIG` object from the module located at `scripts/config`.
8
+
9
+
Currently the following parameters are supported:
10
+
11
+
-**staticPath**: Override the location of Redash static files (default = `/static/`).
12
+
13
+
#### Example Configuration (`scripts/config.js`):
14
+
15
+
```javascript
16
+
module.exports= {
17
+
staticPath:"my/redash/static/path"
18
+
};
19
+
```
20
+
21
+
### Programmatically
22
+
23
+
For advanced customization, you can provide a script to apply any kind of overrides to the default config as provided by `webpack.config.js`.
24
+
25
+
The override module must be located under `scripts/webpack/overrides`. It should export a `function` that receives the Webpack configuration object and returns the overridden version.
26
+
27
+
#### Example Override Script (`scripts/webpack/overrides.js`):
28
+
29
+
This is an example of an override that enables Webpack stats.
0 commit comments