Skip to content
This repository has been archived by the owner on Jan 6, 2021. It is now read-only.

Commit

Permalink
docs(README): mention Bash on Windows (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
nolanlawson authored and Kent C. Dodds committed Jan 9, 2017
1 parent b4a0063 commit afdb2de
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions README.md
Expand Up @@ -36,9 +36,11 @@ The `NODE_ENV` environment variable will be set by `cross-env`

## Why?

Windows will choke when you set environment variables with `NODE_ENV=production` like that. This makes it so you can
have a single command without worrying about setting the environment variable properly for the platform. Just set it
like you would if it's running on a unix system, and `cross-env` will take care of setting it properly.
Most Windows command prompts will choke when you set environment variables with `NODE_ENV=production` like that. (The exception is [Bash on Windows](https://msdn.microsoft.com/en-us/commandline/wsl/about), which uses native Bash.)

`cross-env` makes it so you can have a single command without worrying about setting the environment
variable properly for the platform. Just set it like you would if it's running on a unix system, and
`cross-env` will take care of setting it properly.

## Known limitations

Expand Down

0 comments on commit afdb2de

Please sign in to comment.