Skip to content

Commit

Permalink
Merge pull request #1496 from stealjs/env2
Browse files Browse the repository at this point in the history
Document possible values of steal.loader.env
  • Loading branch information
matthewp authored Mar 25, 2019
2 parents 506c89c + 897fd4b commit 78d1f07
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/config-env.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,13 @@ steal.loader.isPlatform("window"); // true
```

Rarely do you need to set `env` any more, more likely you want to use [config.loadBundles]. env is set by plugins in most cases.

## Common values

A few of the common env values include:

* __window-development__: This is value when using Steal in dev mode in the browser.
* __window-production__: This is the value set for production builds, built using [steal-tools].
* __server-development__ / __server-production__: These are values set by [done-ssr](https://github.com/donejs/done-ssr) when loading a Steal application for server-side rendering purposes.
* __electron-production__: Set when using the [steal-electron](https://github.com/stealjs/steal-electron) plugin.
* __cordova-production__: Set when using the [steal-cordova](https://github.com/stealjs/steal-cordova) plugin.

0 comments on commit 78d1f07

Please sign in to comment.