You can use this folder to add scripts and configurations to customize Redash build and development loop.
You can override the values of configurable parameters by exporting a CONFIG object from the module located at scripts/config.
Currently the following parameters are supported:
- staticPath: Override the location of Redash static files (default =
/static/).
module.exports = { staticPath: "my/redash/static/path" };For advanced customization, you can provide a script to apply any kind of overrides to the default config as provided by webpack.config.js.
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.
This is an example of an override that enables Webpack stats.
function applyOverrides(webpackConfig) { return { ...webpackConfig, stats: { children: true, modules: true, chunkModules: true } }; } module.exports = applyOverrides;