UNPKG

funcunit

Version:
23 lines (16 loc) 661 B
@property {{}} System.envs @parent StealJS.config Specifies environment-specific configuration to be applied to the loader after [@config] has loaded. @option {{}} An object of configuration values. @body 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].