funcunit
Version:
<!-- @hide title
23 lines (16 loc) • 661 B
Markdown
{{}} System.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 [System.env]. For example you might want to apply a different [System.baseURL] if loading from a CDN in production, to do so you could do:
```js
System.config({
envs: {
"window-production": {
baseURL: "https://somecdn.com/my-app/"
}
}
});
```
**envs** can be sepecified with any of the approaches in [System.config].