...
Note: the environments closure is not directly parsable. Without using the special environment constructor the closure is ignored.
The value of the environment constructor is also available in the configuration file, allowing you to build the configuration like this:
| Code Block |
|---|
switch (environment) {
case 'development':
baseUrl = "devServer/"
break
case 'test':
baseUrl = "testServer/"
break
default:
baseUrl = "localhost/"
}
|