steal
Version:
Gets JavaScript.
23 lines (16 loc) • 665 B
Markdown
envs envs
StealJS.config
Specifies environment-specific configuration to be applied to the loader after [ ] has loaded.
{{}} An object of configuration values.
Add `envs` configuration if you need it to be applied only when in a certain environment. This environment is controlled by [config.env]. For example you might want to apply a different [config.baseURL] if loading from a CDN in production, to do so you could do:
```js
steal.config({
envs: {
"window-production": {
baseURL: "https://somecdn.com/my-app/"
}
}
});
```
**envs** can be sepecified with any of the approaches in [config.config].
{{}} config.