steal icon indicating copy to clipboard operation
steal copied to clipboard

Make System.envs match platform, environment, or {platform}-{environment}

Open Bajix opened this issue 9 years ago • 1 comments

System.envs requires both a platform & an environment. This means that configuration needs to be redundantly defined for each combination of platform/environment.

It would simplify configuration to be able to simply target "window" / "server".

http://stealjs.com/docs/System.envs.html

Bajix avatar Oct 17 '16 18:10 Bajix

Very verbose currently, I'm not a fan of how it works, would like something better, for sure. This is not a bad idea, but I'm wondering if completely rethinking env is a better idea. I'm just not sure what that would be.

matthewp avatar Oct 17 '16 19:10 matthewp