envs

  • property
config.envs {Object}  

Specifies environment-specific configuration to be applied to the loader after @config has loaded.

Object

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 env. For example you might want to apply a different baseURL if loading from a CDN in production, to do so you could do:

steal.config({
    envs: {
        "window-production": {
            baseURL: "https://somecdn.com/my-app/"
        }
    }
});

envs can be sepecified with any of the approaches in config.