mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-05-16 19:09:05 +08:00
Use friendlier syntax for setting env var on Windows (#3533)
* use safer/more aesthetic syntax * fix typo
This commit is contained in:
committed by
Joe Haddad
parent
ed5c48c81b
commit
76e3165412
@@ -890,10 +890,10 @@ life of the shell session.
|
||||
#### Windows (cmd.exe)
|
||||
|
||||
```cmd
|
||||
set REACT_APP_SECRET_CODE=abcdef&&npm start
|
||||
set "REACT_APP_SECRET_CODE=abcdef" && npm start
|
||||
```
|
||||
|
||||
(Note: the lack of whitespace is intentional.)
|
||||
(Note: Quotes around the variable assignment are required to avoid a trailing whitespace.)
|
||||
|
||||
#### Linux, macOS (Bash)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user